Created
September 9, 2012 08:07
-
-
Save phette23/3683282 to your computer and use it in GitHub Desktop.
Using tcpdump to capture network traffic
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
sudo tcpdump -i en0 -n -s 0 -w traffic.pcap tcp or port 53 | |
# see code.google.com/p/pcaphar/wiki/CaptureMobileTraffics | |
# NB: en0 is for ethernet connections, en1 for Airport | |
# see also support.apple.com/kb/HT3994 | |
# can analyze .pcap output with pcapperf.appspot.com/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment