mitmproxy/examples
Maximilian Hils 0f54f2990c Merge pull request #872 from bazzinotti/inline-tcp
Add "tcp_message" Inline Script Hook
2016-01-17 19:54:59 +01:00
..
README add inline script for conditional tls passthrough 2015-09-08 21:35:15 +02:00
add_header.py adjust to new netlib Headers class 2015-09-05 20:45:58 +02:00
change_upstream_proxy.py remove depth attribute from set_server 2015-09-03 18:25:36 +02:00
custom_contentviews.py minor stylistic fixes 2015-11-14 03:46:34 +01:00
dns_spoofing.py adjust to netlib request changes + docs 2015-09-26 01:23:59 +02:00
dup_and_replay.py Add coding style check, reformat. 2015-05-30 12:03:28 +12:00
filt.py Add coding style check, reformat. 2015-05-30 12:03:28 +12:00
flowbasic update example inline scripts 2015-09-04 00:46:42 +02:00
flowwriter.py Add coding style check, reformat. 2015-05-30 12:03:28 +12:00
har_extractor.py code -> status_code, httpversion -> http_version 2015-09-17 15:16:33 +02:00
iframe_injector.py update example inline scripts 2015-09-04 00:46:42 +02:00
mitmproxywrapper.py Merge remote-tracking branch 'upstream/master' into print-bracket-fix 2015-05-31 01:21:44 -04:00
modify_form.py adjust to new netlib Headers class 2015-09-05 20:45:58 +02:00
modify_querystring.py Add coding style check, reformat. 2015-05-30 12:03:28 +12:00
modify_response_body.py update example inline scripts 2015-09-04 00:46:42 +02:00
nonblocking.py Fixed print function to be inline with python 3 2015-05-29 23:17:48 -04:00
proxapp.py Add coding style check, reformat. 2015-05-30 12:03:28 +12:00
read_dumpfile update example inline scripts 2015-09-04 00:46:42 +02:00
redirect_requests.py Update redirect_requests.py 2016-01-08 16:02:27 +01:00
sslstrip.py no longer strips Accept-Encoding as mitmproxy can handle compression 2016-01-12 22:25:42 +00:00
stickycookies adjust to new netlib Headers class 2015-09-05 20:45:58 +02:00
stream.py Add coding style check, reformat. 2015-05-30 12:03:28 +12:00
stream_modify.py update example inline scripts 2015-09-04 00:46:42 +02:00
stub.py update example inline scripts 2015-09-04 00:46:42 +02:00
tcp_message.py Add Inline Script Hooks to TCP mode 2016-01-10 13:05:01 -05:00
tls_passthrough.py use new netlib exceptions 2015-09-17 02:13:28 +02:00
upsidedownternet.py adjust to new netlib Headers class 2015-09-05 20:45:58 +02:00

README

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.


# 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