Skip to content

Instantly share code, notes, and snippets.

@soardex
Last active August 29, 2015 14:22
Show Gist options
  • Save soardex/6843c6a04b3974fdd582 to your computer and use it in GitHub Desktop.
Save soardex/6843c6a04b3974fdd582 to your computer and use it in GitHub Desktop.
Trace Network Calls of a Process
# attach to a current network
strace -p [pid] -f -e trace=network -s [strsize]
# or just trace connect calls
strace -p [pid] -f -e trace=network -s [strsize]
# or some chosen network calls
strace -p [pid] -f -e poll,select,connect,recvfrom,sendto -s [strsize]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment