
It was precisely designed for this purpose, create a network capture from a single process (and its children) without leaking other traffic. Capture from either end of the veth interface and start your process within the network namespace.įor the latter approach, I wrote some scripts to automate it, it can be found at.


Here are the steps: Connect your Mac to your router using an Ethernet cable (the Wi-Fi card will be busy working as access point).

Capture files from HTTP traffic By using Wireshark we can also easily extract files such as images, documents and audio files from the network traffic. Arbitrary packets are typically not associated with a process. An alternative is using your Mac as a Wi-Fi access point and sniffing the traffic with TCPDump. Sniffing a session cookie from the network has practically the same impact as sniffing credentials.
