mitmproxy/examples
Aldo Cortesi 937a358aa9 Merge branch 'master' of ssh.github.com:mitmproxy/mitmproxy 2015-04-14 12:01:37 +12:00
..
README spaces, not tabs 2015-04-12 03:50:14 +02:00
add_header.py update examples, fix #353 2014-09-08 17:03:34 +02:00
change_upstream_proxy.py update change_upstream_proxy example 2014-11-10 15:51:26 +01:00
dns_spoofing.py add example inline script for dns spoofing, refs #486 2015-02-27 12:55:16 +01:00
dup_and_replay.py update examples, fix #353 2014-09-08 17:03:34 +02:00
filt.py Housekeeping and cleanups 2015-04-14 11:58:10 +12:00
flowbasic Changed argument name from confdir to cadir in flowbasic example 2014-11-28 12:36:31 -05:00
flowwriter.py spaces, not tabs 2015-04-12 03:50:14 +02:00
har_extractor.py Clean up har_extractor example 2015-01-02 13:42:43 +13:00
iframe_injector.py update iframe injector example to use BeautifulSoup 2014-09-12 02:42:45 +02:00
ignore_websocket.py Make the Websocket's connection header value case-insensitive 2015-03-31 16:07:04 +09:00
mitmproxywrapper.py
modify_form.py update examples, fix #353 2014-09-08 17:03:34 +02:00
modify_querystring.py update examples, fix #353 2014-09-08 17:03:34 +02:00
modify_response_body.py update examples, fix #353 2014-09-08 17:03:34 +02:00
nonblocking.py update examples, fix #353 2014-09-08 17:03:34 +02:00
proxapp.py update examples, fix #353 2014-09-08 17:03:34 +02:00
read_dumpfile Clean up and clarify StateObject 2014-09-17 11:41:42 +12:00
redirect_requests.py update examples, fix #353 2014-09-08 17:03:34 +02:00
stickycookies remove default_ca 2014-10-18 15:26:10 +02:00
stream.py update examples, fix #353 2014-09-08 17:03:34 +02:00
stream_modify.py fix #319 2015-02-27 15:24:27 +01:00
stub.py update examples, fix #353 2014-09-08 17:03:34 +02:00
upsidedownternet.py update examples, fix #353 2014-09-08 17:03:34 +02:00

README

# 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.


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


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