Skip to content

Instantly share code, notes, and snippets.

@AndyA
Created July 24, 2014 10:56
Show Gist options
  • Select an option

  • Save AndyA/549cb4805b08a3bf173f to your computer and use it in GitHub Desktop.

Select an option

Save AndyA/549cb4805b08a3bf173f to your computer and use it in GitHub Desktop.
First type
$ cd ~/Desktop
$ sudo tcpdump -D
You'll be asked for your password and then a list of network interfaces will appear.
Password:
1.en0
2.bridge0
3.utun0
4.en1
5.p2p0
6.lo0
Choose the first interface from the list (in this case "en0") and use it in a second tcpdump command:
$ sudo tcpdump -i en0 -w imap.pcap port 143
That will run until you stop it by pressing Ctrl-C. Leave it running for at least 10 minutes and then stop it. You should then have a file called "imap.pcap" on your desktop. Please send that to me.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment