Skip to content

Instantly share code, notes, and snippets.

@phette23
Created September 9, 2012 08:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save phette23/3683282 to your computer and use it in GitHub Desktop.
Save phette23/3683282 to your computer and use it in GitHub Desktop.
Using tcpdump to capture network traffic
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