21

I'm developing a website that uses SSL (connction to https) and I want to confirm that all the data sent is encrypted. Could anyone give me a good free packet sniffer on Mac OS that I could use?

Thanks!

Michael Eilers Smith
  • 8,466
  • 20
  • 71
  • 106

3 Answers3

69

It's not as slick as Wireshark, but OS X has a built-in command line tool for capturing and displaying packets:

sudo tcpdump -A -s0 -ien0 port 80

(the -A flag makes it display the packets' contents as text, -s0 makes it capture entire packets not just the headers, -ien0 makes it capture on the first ethernet interface (generally, the wireless is en1), and port 80 makes it only capture traffic to/from port 80 (see the man page for more options for capture patterns.)

Gordon Davisson
  • 118,432
  • 16
  • 123
  • 151
11

Don't forget Packet Peeper, WireShark is not so nice on Mac.

http://packetpeeper.org/

Community
  • 1
  • 1
AbiusX
  • 2,379
  • 20
  • 26
3

Wireshark, or, Lion comes with one built in. Find it at /System/Library/CoreServices/Wi-Fi Diagnostics. I prefer Wireshark.

Marty
  • 5,926
  • 9
  • 53
  • 91
  • Given that Wi-Fi Diagnostics just writes out a pcap file, and does nothing to help you read it, Wireshark, or even tcpdump, is preferable for Mr. Smith's purposes. (I also don't know whether it'll capture on non-Wi-Fi interfaces, if that's what he wants.) –  Sep 28 '12 at 01:35