Skip to content

mitm plugin to dump http request response and headers to a file

License

Notifications You must be signed in to change notification settings

sameer17cs/mitm-http-dump

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Using mitm proxy and custom addons

Download mitm:

    wget https://github.com/mitmproxy/mitmproxy/releases/download/v4.0.1/mitmproxy-4.0.1-linux.tar.gz

Setup mitm

    tar xvf mitmproxy-4.0.1-linux.tar.gz
    cp mitm* /usr/local/bin

Test mitm, dump traffic to outfile

    mitmdump -w outfile

Start mitm with your addon (parser)

    mitmdump --set block_global=false --anticomp -s addons/dump_http.py

dump_http addon is performing below tasks

  • Intercept all incoming traffic
  • Optionally, you can parse requests only for specific domain. In this example, it is google.com
  • Creates a dump file called dump_http.txt, and for each request/response, write following info
       - request domain
       - request url
       - request method
       - request headers
       - request body
       - response headers
       - response body     

About

mitm plugin to dump http request response and headers to a file

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages