mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-26 10:16:27 +00:00
e6eeab6094
- Addons now nest, which means that addons can manage addons. This has a number of salutary effects - the scripts addon no longer has to poke into the global addons list, we no longer have to replace/remove/boot-outof parent addons when we load scripts, and this paves the way for making our top-level tools into addons themselves. - All addon calls are now wrapped in a safe execution environment where exceptions are caught, and output to stdout/stderr are intercepted and turned into logs. - We no longer support script arguments in sys.argv - creating an option properly is the only way to pass arguments. This means that all scripts are always directly controllable from interctive tooling, and that arguments are type-checked. For now, I've disabled testing of the har dump example - it needs to be moved to the new argument handling, and become a class addon. I'll address that in a separate patch. |
||
---|---|---|
.. | ||
add_header_class.py | ||
add_header.py | ||
custom_contentview.py | ||
custom_option.py | ||
filter_flows.py | ||
io_read_dumpfile.py | ||
io_write_dumpfile.py | ||
log_events.py | ||
modify_body_inject_iframe.py | ||
modify_form.py | ||
modify_querystring.py | ||
README.md | ||
redirect_requests.py | ||
send_reply_from_proxy.py | ||
upsidedownternet.py | ||
wsgi_flask_app.py |
Simple Examples
Filename | Description |
---|---|
add_header.py | Simple script that just adds a header to every request. |
custom_contentview.py | Add a custom content view to the mitmproxy UI. |
filter_flows.py | This script demonstrates how to use mitmproxy's filter pattern in scripts. |
io_read_dumpfile.py | Read a dumpfile generated by mitmproxy. |
io_write_dumpfile.py | Only write selected flows into a mitmproxy dumpfile. |
log_events.py | Use mitmproxy's logging API. |
modify_body_inject_iframe.py | Inject configurable iframe into pages. |
modify_form.py | Modify HTTP form submissions. |
modify_querystring.py | Modify HTTP query strings. |
redirect_requests.py | Redirect a request to a different server. |
script_arguments.py | Add arguments to a script. |
send_reply_from_proxy.py | Send a HTTP response directly from the proxy. |
upsidedownternet.py | Turn all images upside down. |
wsgi_flask_app.py | Embed a WSGI app into mitmproxy. |