Utilities
Turn saved HTTP flows into a HAR file
Convert an existing HTTP flow capture to a native HAR file.
12.2.3 on Trickest
Free plan: 1 user, 3 execution slots, no card.
overview
What mitmproxy-export does
Supply a saved mitmproxy HTTP flow FILE. The wrapper runs mitmdump with its proxy server disabled, reads the local capture and writes the native HAR 1.2 artifact. It does not open a proxy listener or replay requests.
The HAR includes captured HTTP headers and bodies. Export is a format conversion, not redaction: the output retains the capture data that the native exporter includes. It is distinct from decoding packets from a PCAP.
Input must be a nonempty regular, nonsymlink file of at most 50 MiB. The native subprocess has a 90-second timeout, a 2 GiB address-space limit and a 100 MiB per-file size limit. These subprocess limits are not a total-container resource guarantee. The output path must not exist. At least one exportable HTTP flow is required.
source hub.docker.com/r/nenadzaric/skills-intel-mitmproxy-export · 12.2.3 on Trickest
image quay.io/trickest/mitmproxy-export:12.2.3
use cases
mitmproxy-export use cases
Inspect saved request and response records
Read native HAR request/response fields from an existing HTTP flow file. The owned saved-run fixture exports one GET request and its HTTP 201 response.
Move HTTP capture data between file-processing nodes
Use the HAR file as an artifact for a downstream parser. The native output includes headers, bodies and timings rather than a replacement summary.
Export without replaying traffic
Work from a supplied native flow capture. Proxy listening, replay, addons and custom configuration are not exposed.
reference
mitmproxy-export inputs and flags
| Name | Type | Flag | Description |
|---|---|---|---|
| input | FILE | --input | Saved mitmproxy native flow file, max 50 MiB, containing HTTP flows. Output includes captured headers and bodies. |
Showing key inputs. mitmproxy-export exposes 1 inputs in total.
example
mitmproxy-export command examples
python3 /app/run.py --input saved.flow result.har "response": {
"status": 201,
"statusText": "Created",
"httpVersion": "HTTP/1.1",guidance
mitmproxy-export vs alternatives
Choose this node for saved mitmproxy HTTP flows and a HAR artifact. Packet captures require a packet decoder such as the upstream TShark CLI; they are a different input format.
| Tool | Pick it when |
|---|---|
| TShark (upstream CLI) | Decode a packet capture into protocol fields rather than export saved mitmproxy HTTP flows as HAR. |
faq
mitmproxy-export FAQ
related
More Utilities tools
dnsgen
Wordlist and mined-word subdomain permutation.
pup
CSS selectors over HTML, the jq counterpart for markup.
unfurl
Extract chosen URL parts from stdin into clean line lists.
browser-fetch
Headless Chromium render: requested URL, final URL, status, and title next to the page.
cewl
Spider a URL and return a wordlist for password crackers.
csvkit
SQL on one CSV. The table name is the file stem.
Run mitmproxy-export yourself
Verbatim response-header excerpt from native HAR downloaded from the existing owned synthetic run. It is not a complete HAR document. The full saved artifact contains the request, response body and timings.
Facts on this page come from the live Trickest tool library.