Unofficial scripts developed for use with the mitmproxy project.
*Obs: all scripts will write their outputs inside your current work folder (the one you were at when the mitmproxy tool was called), unless specified otherwise in this explanation.*
- dump_headers.py
- Dumps the flow headers (with their respective values) inside the file "headers".
- dump_content.py
- Dumps the flow content in a file. It will create a directory called "content" and a subdirectory for the content-type. Inside this folder it will put the content retrieved, in a file named after its sha1 hash and a part of the content-type.
Lets say you made a request and it returned a gif image. Its content-type will be "image/gif" and it has a sha1 hash of "3d55ea361fc605f70ae51006b4e13b746cfe10f4". As you will see, the image will be created as "content/image_gif/3d55ea361fc605f70ae51006b4e13b746cfe10f4_gif".
An HTML page with hash "4a785571983375e723ec42e3748d6a0fdfa1716e" would be created as "content/text_html/4a785571983375e723ec42e3748d6a0fdfa1716e_html"