hatching / httpreplay

Replay HTTP and HTTPS requests from a PCAP based on TLS Master Secrets.
Other
95 stars 35 forks source link

Add support for streaming PCAPs to mitmproxy #5

Closed mhils closed 8 years ago

mhils commented 8 years ago

In a nutshell, this allows live PCAP processing with mitmproxy, at least for HTTP. :smiley: :tada:

tail -f -c +0 data/dump.pcap | pcap2mitmproxy --stream - - | mitmdump -s details.py -n -r - 

I replaced argparse with click, because click treats - as stdin/stdout automatically. There are also a few fixes to make pcap2mitmproxy more resilient against invalid input.