mitmproxy/examples
2016-10-29 11:31:38 -07:00
..
pathod
add_header.py
arguments.py docs: overview, classes, arguments 2016-10-16 20:26:06 +13:00
change_upstream_proxy.py
classes.py docs: overview, classes, arguments 2016-10-16 20:26:06 +13:00
context_logging.py rename logging .py to prevent import errors 2016-10-29 11:31:38 -07:00
custom_contentviews.py netlib.strutils -> mitmproxy.utils.strutils 2016-10-20 10:11:58 +13:00
dns_spoofing.py
dup_and_replay.py minor fixes 2016-10-25 22:06:52 -07:00
fail_with_500.py
flowbasic Remove flow module entirely, move contents to top level 2016-10-19 15:08:35 +13:00
flowfilter.py The first argument should be the filter, then the flow. 2016-10-21 16:47:19 -07:00
flowwriter.py Move all tools into mitmproxy.tools, move models/* to top level 2016-10-19 20:26:05 +13:00
full_transparency_shim.c Added a description to the shim loader, and renamed it. 2016-09-14 19:25:53 +00:00
har_dump.py Include boudary=... in mutipart postData 2016-10-24 14:34:04 -07:00
iframe_injector.py
mitmproxywrapper.py python3: clean up class brackets 2016-10-17 17:37:08 +13:00
modify_form.py
modify_querystring.py
nonblocking.py fix #1678 2016-10-27 12:55:39 -07:00
proxapp.py addons.Addons -> addonmanager, builtins -> addons 2016-10-19 14:39:39 +13:00
read_dumpfile Remove flow module entirely, move contents to top level 2016-10-19 15:08:35 +13:00
README
redirect_requests.py Move all tools into mitmproxy.tools, move models/* to top level 2016-10-19 20:26:05 +13:00
remote_debug.py
sslstrip.py test & examples: zap six 2016-10-17 16:45:45 +13:00
stickycookies Kill flow.master - create master.Master 2016-10-19 13:22:50 +13:00
stream_modify.py
stream.py
stub.py
tcp_message.py netlib.strutils -> mitmproxy.utils.strutils 2016-10-20 10:11:58 +13:00
tls_passthrough.py mitmproxy.protocol -> mitmproxy.proxy.protocol 2016-10-19 23:11:56 +13:00
upsidedownternet.py test & examples: zap six 2016-10-17 16:45:45 +13: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