Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/muzuiget/mitmpcap
export mitmproxy traffic to PCAP file
https://github.com/muzuiget/mitmpcap
mitmproxy pcap
Last synced: about 2 months ago
JSON representation
export mitmproxy traffic to PCAP file
- Host: GitHub
- URL: https://github.com/muzuiget/mitmpcap
- Owner: muzuiget
- Archived: true
- Created: 2019-07-08T00:33:59.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-11-12T09:08:32.000Z (about 1 year ago)
- Last Synced: 2024-08-04T04:07:17.257Z (5 months ago)
- Topics: mitmproxy, pcap
- Language: Python
- Homepage:
- Size: 3.91 KB
- Stars: 54
- Watchers: 3
- Forks: 10
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-network-stuff - **7**星
README
# mitmpcap
**NOTE: This project has been abandoned, use the SSLKEYLOGFILE way instead. see [#10](https://github.com/muzuiget/mitmpcap/issues/10).**
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.
[mitmproxy addon]: https://docs.mitmproxy.org/stable/addons-overview/
## Usage
Use as addon for mitmproxy/mitmweb/mitmdump command:
```
mitmweb -s mitmpcap.py
```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.
[Weer]: https://weerdbg.com/
## License
MIT