Re:Tcpdump is amazing
by amelius on Thursday March 17, 2016 @05:53AM
(#11303441)
The problem is that encryption (https everywhere) spoils its usefulness for the larger part.
[ Parent
| on HN ]
If you have the private key, you can decrypt it in Wireshark.
Inaccurate. Most browsers will now be using ephemeral key exchange. You pretty much have to configure one of the end points to dump session keys to a log file, then load that in to wireshark alongside the packet dump.
It would be nice if there was some automated way to do this.
You can use mitmproxy [1] to dump the TLS Master Secrets for all connnections it intercepts [2]. The dumpfile goes straight into WireShark.
Obligatory disclaimer: I'm one of the mitmproxy authors - happy to answer any questions.
[2] http://docs.mitmproxy.org/en/stable/dev/sslkeylogfile.html