Skip to content

Latest commit

 

History

History
34 lines (31 loc) · 928 Bytes

File metadata and controls

34 lines (31 loc) · 928 Bytes

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