Skip to content

A collection of inspiring lists, manuals, cheatsheets, blogs, hacks, one-liners, cli/web tools and more.

change nc remote shell command to work on wide distros

Ram Damerab68a2d51e77f
diff --git a/README.md b/README.md
index fd06e76..62b5a10 100644
--- a/README.md
+++ b/README.md
@@ -3235,7 +3235,8 @@ client> tar czvfp - /path/to/dir | nc 10.240.30.3 5000
###### Launch remote shell
```bash
-server> nc -l 5000 -e /bin/bash
+server> rm -f /tmp/f; mkfifo /tmp/f
+server> cat /tmp/f | /bin/bash -i 2>&1 | nc -l 127.0.0.1 5000 > /tmp/f
client> nc 10.240.30.3 5000
```