mitmproxy/examples
2016-08-15 12:00:23 +05:30
..
pathod format examples 2016-05-29 01:23:39 -07:00
add_header.py remove context from all scripts 2016-07-07 20:14:52 -07:00
change_upstream_proxy.py remove context from all scripts 2016-07-07 20:14:52 -07:00
custom_contentviews.py Add .start for addons and scripts 2016-07-15 14:52:34 +12:00
dns_spoofing.py remove context from all scripts 2016-07-07 20:14:52 -07:00
dup_and_replay.py remove context from all scripts 2016-07-07 20:14:52 -07:00
fail_with_500.py remove context from all scripts 2016-07-07 20:14:52 -07:00
filt.py scripts: refactor some examples that keep global state 2016-07-23 12:24:09 +12:00
flowbasic handle_* -> * leftovers 2016-05-29 13:01:45 -07:00
flowwriter.py scripts: refactor some examples that keep global state 2016-07-23 12:24:09 +12:00
har_dump.py Add text field to response content 2016-08-15 12:00:23 +05:30
iframe_injector.py scripts: refactor some examples that keep global state 2016-07-23 12:24:09 +12:00
mitmproxywrapper.py more style cleanup 2016-05-29 11:55:12 +02:00
modify_form.py remove context from all scripts 2016-07-07 20:14:52 -07:00
modify_querystring.py remove context from all scripts 2016-07-07 20:14:52 -07:00
modify_response_body.py Merge remote-tracking branch 'origin/master' into message-body-encoding 2016-07-15 23:17:57 -07:00
nonblocking.py move script context to mitmproxy.ctx 2016-07-08 19:57:57 -07:00
proxapp.py Add .start for addons and scripts 2016-07-15 14:52:34 +12:00
read_dumpfile FlowReadError -> FlowReadException 2016-04-29 11:17:49 -07:00
README Adding example which turns every reponse into an HTTP 500. (#1136) 2016-05-11 15:26:17 -06:00
redirect_requests.py remove context from all scripts 2016-07-07 20:14:52 -07:00
remote_debug.py make the linter happy 2016-07-23 14:35:04 -07:00
sslstrip.py Merge remote-tracking branch 'origin/master' into message-body-encoding 2016-07-15 23:17:57 -07:00
stickycookies Adapt examples 2016-05-29 12:54:52 +12:00
stream_modify.py remove context from all scripts 2016-07-07 20:14:52 -07:00
stream.py remove context from all scripts 2016-07-07 20:14:52 -07:00
stub.py Addon iface: .configure(options) -> .configure(options, updated) 2016-07-23 15:43:55 +12:00
tcp_message.py remove context from all scripts 2016-07-07 20:14:52 -07:00
tls_passthrough.py Add .start for addons and scripts 2016-07-15 14:52:34 +12:00
upsidedownternet.py Merge remote-tracking branch 'origin/master' into message-body-encoding 2016-07-15 23:17:57 -07: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.
fail_with_500.py          Turn every response into an Internal Server Error.
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