Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
unix networking

netcat

Duplex between to terminals

# start
$ nc -l 1234
# listen
$ nc 127.0.0.1 1234

Transfer files

# start and capture to file
$ nc -l 1234 > file.out
# listen and send file
$ nc host port < file.in

nmap

$ nmap url

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment