Skip to content

Instantly share code, notes, and snippets.

@daoleno
Created February 4, 2018 15:55
Show Gist options
  • Save daoleno/3638bea77140025b1228d131d999c3c6 to your computer and use it in GitHub Desktop.
Save daoleno/3638bea77140025b1228d131d999c3c6 to your computer and use it in GitHub Desktop.
strace and nc

Server

strace -r -e trace=bind,listen,accept,poll,read,write nc -l -p 8080 

Client

strace -r -e trace=connect,poll,read,write,close nc 127.0.0.1 8080
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment