Last active
August 29, 2015 14:22
-
-
Save soardex/6843c6a04b3974fdd582 to your computer and use it in GitHub Desktop.
Trace Network Calls of a Process
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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