Skip to content

Instantly share code, notes, and snippets.

@fortable1999
Created July 5, 2018 06:02
Show Gist options
  • Save fortable1999/ac05437478c4b0bedcdd26b97a7400e6 to your computer and use it in GitHub Desktop.
Save fortable1999/ac05437478c4b0bedcdd26b97a7400e6 to your computer and use it in GitHub Desktop.
### Send file
## On the receiving end running,
nc -l -p 1234 > out.file
## On the sending end running,
nc -w 3 [destination] 1234 < out.file
### Proxying
nc -l 12345 | nc www.google.com 80
### Making any process a server
nc -l -p 1234 -e /bin/sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment