Skip to content

Instantly share code, notes, and snippets.

@nebgnahz
Created December 6, 2016 07:24
Show Gist options
  • Save nebgnahz/e13d8c79ad45c1653cc19f922e5868e1 to your computer and use it in GitHub Desktop.
Save nebgnahz/e13d8c79ad45c1653cc19f922e5868e1 to your computer and use it in GitHub Desktop.
Network Tools

netcat

Use GNU netcat 0.7.1 from Homebrew.

# listener
netcat -l -p 4444

# sender
netcat localhost 4444

# pipe file
netcat localhost 4444 < <file>

lsof

Tell which program is listening on a specific port:

lsof -i :4444
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment