I didn’t see a way to export projects to common formats like plain text. How would that be done for sharing with others who have not heard of and/or don’t use mitmproxy?
You can export individual flows to plaintext from within mitmproxy. Alternatively, you can of course also just run
mitmdump -d -n -r capture.mitm > capture.txt. Is that what you are looking for?
Hi, thanks for reply.
-d arg was not recognised. What was it supposed to do? I couldn’t find that switch in the
mitmdump -h. I am using version 3.
usage: mitmproxy [options] mitmproxy: error: unrecognized arguments: -d
I tried without and it saved just the flow names. I am looking to somehow save all data from selected flows - headers/responses etc. Though maybe I will be ok with just doing it with the individual flows. As I think about it I am not sure how it would work to save all the flows, including their data inside each one, at once? is that faesible or not?
I’m also puzzled about the
-d option - I don’t see it in mitmdump version 4.0.4 either. Ignoring it seems to work.
But I’m thrilled to see that by adding
-s, and using mitmproxy/har_dump.py I can convert a previous dump file to HAR format, which seems to be one of the standard ways to share HTTP traffic:
mitmdump -n -r dump.mitm -s har_dump.py --set hardump=./dump.har
Can't find har export on Windows 10 after mitmdump