Skip to content

Instantly share code, notes, and snippets.

@karlpokus
Created May 22, 2017 10:49
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 karlpokus/dc2ed92d0bedd2126a1be7e9c6e8f5fa to your computer and use it in GitHub Desktop.
Save karlpokus/dc2ed92d0bedd2126a1be7e9c6e8f5fa to your computer and use it in GitHub Desktop.
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