From 994e557178da0c25fca599f380d0ca0593ee7637 Mon Sep 17 00:00:00 2001 From: "Sameer Bhatt (debugger)" Date: Sun, 9 Feb 2020 12:46:18 +0530 Subject: [PATCH] Added more TTY Shell using perl and python --- Methodology and Resources/Reverse Shell Cheatsheet.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Methodology and Resources/Reverse Shell Cheatsheet.md b/Methodology and Resources/Reverse Shell Cheatsheet.md index 065b6c5..9eb5efc 100644 --- a/Methodology and Resources/Reverse Shell Cheatsheet.md +++ b/Methodology and Resources/Reverse Shell Cheatsheet.md @@ -379,8 +379,11 @@ Spawn a TTY shell from an interpreter ```powershell /bin/sh -i python3 -c 'import pty; pty.spawn("/bin/sh")' +python3 -c "__import__('pty').spawn('/bin/bash')" +python3 -c "__import__('subprocess').call(['/bin/bash'])" perl -e 'exec "/bin/sh";' perl: exec "/bin/sh"; +perl -e 'print `/bin/bash`' ruby: exec "/bin/sh" lua: os.execute('/bin/sh') ```