Mitmproxy: export traffic to pcap file

Created on 9 Mar 2016  路  5Comments  路  Source: mitmproxy/mitmproxy

first off all , i am sorry about my language .
i try to sniffing https traffic using client certificate via mitmproxy.
i want to show same traffic on wireshark but no way to export it to pcap file .
is there any way to get a pcap file that contains https decrypted traffic through mitmproxy .

kinquestion

Most helpful comment

btw the link for step 1 is now dead - should probably be this

All 5 comments

I don't think mitmproxy currently supports exporting the traffic to PCAP format. This feature is already being discussed on issue #408

The recommended way to do this is to (1) log the TLS master secrets with mitmproxy and (2) use a normal PCAP tool for packet capture.

btw the link for step 1 is now dead - should probably be this

I write a simple addon script to implement this feature.

https://github.com/muzuiget/mitmpcap

I know this is an old thread and thank you to muzuiget for writing the add on script.
I'm also leaving an alternate option that is not discussed is PolarProxy which is a stand alone that does the same thing. It's a creative commons license. This is so that others may benefit from any internet searching for this type of functionality.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dmorgun picture dmorgun  路  4Comments

prastut picture prastut  路  5Comments

Dauth picture Dauth  路  3Comments

beth92 picture beth92  路  4Comments

atx picture atx  路  4Comments