How to capture TCP packets under OS X?

Use tcpflow:

tcpflow -c [> filename]