From cf9b9bf70c3d376351209d2bd8511471c0428512 Mon Sep 17 00:00:00 2001 From: Thigh_GoD <123708601+Thy-GoD@users.noreply.github.com> Date: Fri, 8 Sep 2023 21:15:54 +0800 Subject: [PATCH 1/2] Update Reverse Shell Cheatsheet.md Added in automatic shell upgrade via rustcat. --- Methodology and Resources/Reverse Shell Cheatsheet.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Methodology and Resources/Reverse Shell Cheatsheet.md b/Methodology and Resources/Reverse Shell Cheatsheet.md index 7af4e18d..a7c46727 100644 --- a/Methodology and Resources/Reverse Shell Cheatsheet.md +++ b/Methodology and Resources/Reverse Shell Cheatsheet.md @@ -550,6 +550,15 @@ or use `socat` binary to get a fully tty reverse shell socat file:`tty`,raw,echo=0 tcp-listen:12345 ``` +Alternatively, `rustcat` binary can automatically inject the TTY shell command. + +The shell will be automatically upgraded and the TTY size will be provided for manual adjustment. + +```bash +stty raw -echo; stty size && rcat l -ie "/usr/bin/script -qc /bin/bash /dev/null" 6969 +``` + + Spawn a TTY shell from an interpreter ```powershell From c7549916b8053214030f23e81a53f276e3032f4e Mon Sep 17 00:00:00 2001 From: Thigh_GoD <123708601+Thy-GoD@users.noreply.github.com> Date: Sat, 9 Sep 2023 03:51:35 +0800 Subject: [PATCH 2/2] Update Reverse Shell Cheatsheet.md Added small quality adjustment. --- Methodology and Resources/Reverse Shell Cheatsheet.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Methodology and Resources/Reverse Shell Cheatsheet.md b/Methodology and Resources/Reverse Shell Cheatsheet.md index a7c46727..fe020727 100644 --- a/Methodology and Resources/Reverse Shell Cheatsheet.md +++ b/Methodology and Resources/Reverse Shell Cheatsheet.md @@ -553,9 +553,10 @@ socat file:`tty`,raw,echo=0 tcp-listen:12345 Alternatively, `rustcat` binary can automatically inject the TTY shell command. The shell will be automatically upgraded and the TTY size will be provided for manual adjustment. +Not only that, upon exiting the shell, the terminal will be reset and thus usable. ```bash -stty raw -echo; stty size && rcat l -ie "/usr/bin/script -qc /bin/bash /dev/null" 6969 +stty raw -echo; stty size && rcat l -ie "/usr/bin/script -qc /bin/bash /dev/null" 6969 && reset ```