mitmproxy/examples
Maximilian Hils bc60c26c7b py3++
2016-04-13 22:34:28 -07:00
..
pathod py3++ 2016-04-13 22:34:28 -07:00
add_header.py Docs and examples to top level 2016-02-18 09:27:08 +13:00
change_upstream_proxy.py Docs and examples to top level 2016-02-18 09:27:08 +13:00
custom_contentviews.py fix content view example inline script 2016-03-10 21:17:05 +01:00
dns_spoofing.py Docs and examples to top level 2016-02-18 09:27:08 +13:00
dup_and_replay.py Docs and examples to top level 2016-02-18 09:27:08 +13:00
filt.py Docs and examples to top level 2016-02-18 09:27:08 +13:00
flowbasic Docs and examples to top level 2016-02-18 09:27:08 +13:00
flowwriter.py Docs and examples to top level 2016-02-18 09:27:08 +13:00
har_extractor.py response.msg -> response.reason 2016-04-02 22:54:46 +02:00
iframe_injector.py Add test for iframe_injector example 2016-03-11 17:57:57 +05:30
mitmproxywrapper.py Docs and examples to top level 2016-02-18 09:27:08 +13:00
modify_form.py Update modify_form example to not use deprecated functions 2016-03-11 17:57:57 +05:30
modify_querystring.py Update modify_querystring example & add test for it 2016-03-11 17:57:57 +05:30
modify_response_body.py Update modify_response_body.py 2016-03-15 15:36:10 +01:00
nonblocking.py Docs and examples to top level 2016-02-18 09:27:08 +13:00
proxapp.py Docs and examples to top level 2016-02-18 09:27:08 +13:00
read_dumpfile py3++ 2016-04-13 22:34:28 -07:00
README Docs and examples to top level 2016-02-18 09:27:08 +13:00
redirect_requests.py Docs and examples to top level 2016-02-18 09:27:08 +13:00
sslstrip.py Docs and examples to top level 2016-02-18 09:27:08 +13:00
stickycookies Docs and examples to top level 2016-02-18 09:27:08 +13:00
stream_modify.py Docs and examples to top level 2016-02-18 09:27:08 +13:00
stream.py Docs and examples to top level 2016-02-18 09:27:08 +13:00
stub.py Docs and examples to top level 2016-02-18 09:27:08 +13:00
tcp_message.py Docs and examples to top level 2016-02-18 09:27:08 +13:00
tls_passthrough.py Docs and examples to top level 2016-02-18 09:27:08 +13:00
upsidedownternet.py py3++: cStringIO 2016-03-20 19:40:03 +01:00

Some inline scripts may require additional dependencies, which can be installed using
`pip install mitmproxy[examples]`.


# inline script examples
add_header.py             Simple script that just adds a header to every request.
change_upstream_proxy.py  Dynamically change the upstream proxy
dns_spoofing.py           Use mitmproxy in a DNS spoofing scenario.
dup_and_replay.py         Duplicates each request, changes it, and then replays the modified request.
filt.py                   Use mitmproxy's filter expressions in your script.
flowwriter.py             Only write selected flows into a mitmproxy dumpfile.
iframe_injector.py        Inject configurable iframe into pages.
modify_form.py            Modify all form submissions to add a parameter.
modify_querystring.py     Modify all query strings to add a parameters.
modify_response_body.py   Replace arbitrary strings in all responses
nonblocking.py            Demonstrate parallel processing with a blocking script.
proxapp.py                How to embed a WSGI app in a mitmproxy server
redirect_requests.py      Redirect requests or directly reply to them.
stub.py                   Script stub with a method definition for every event.
upsidedownternet.py       Rewrites traffic to turn images upside down.


# mitmproxy examples
flowbasic                 Basic use of mitmproxy as a library.
stickycookies             An example of writing a custom proxy with mitmproxy.


# misc
read_dumpfile             Read a dumpfile generated by mitmproxy.
mitmproxywrapper.py       Bracket mitmproxy run with proxy enable/disable on OS X