Skip to content

export mitmproxy traffic to PCAP file

Notifications You must be signed in to change notification settings

Niklas974/mitmpcap

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

mitmpcap

This is a mitmproxy addon script, it exports traffic to PCAP file, so you can view the decoded HTTPS or HTTP/2 traffic in other programs.

Usage

Use as addon for mitmproxy/mitmweb/mitmdump command:

mitmweb -s mitmpcap.pcap

By default, it exports to filename output.pcap.

Setting

Edit the mitmpcap.py file, change the File class argument at the end of file:

addons = [Addon(lambda: File('output.pcap'))]

You also can pipe the PCAP data to other program, use the Pipe class:

addons = [Addon(lambda: Pipe('weer -'))]

This will start Weer as child process to receive the PCAP data.

License

MIT

About

export mitmproxy traffic to PCAP file

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%