mitmproxy/examples/contrib
xmo-odoo 434dabaa5e
Add portfile support (#7724)
Convenient when manipulating mitmproxy programmatically, as it's often
useful to specify port 0 (for all sorts of servers) but then the user
needs a way to retrieve the actual port being used.

mitmproxy logs the bound ports out by default, however because it logs
to the fully buffered stdout *and* can generate quite a bit of log,
this tends to be inconvenient. Writing out a file at a user-specified
location makes it much easier for them to poll, and using json even if
there is a minor race the user can just keep reading until they see a
valid JSON file.
2025-05-23 16:49:08 +02:00
..
webscanner_helper disallow bare except statements (#6017) 2023-03-26 13:57:48 +00:00
all_markers.py Update all_markers.py (#6849) 2024-05-16 14:15:55 +02:00
block_dns_over_https.py Update ruff requirement from <=0.8.6,>=0.5.0 to >=0.5.0,<=0.9.4 (#7528) 2025-02-01 23:21:33 +00:00
change_upstream_proxy.py Fix change_upstream_proxy.py example (#7605) 2025-03-13 19:10:33 +01:00
check_ssl_pinning.py Migrate to ruff (#6433) 2023-10-31 16:03:53 +01:00
custom_next_layer.py Bump the github-actions group with 3 updates (#6701) 2024-03-06 21:54:11 +01:00
dns_spoofing.py Bump the github-actions group with 3 updates (#6701) 2024-03-06 21:54:11 +01:00
domain_fronting.py Migrate to ruff (#6433) 2023-10-31 16:03:53 +01:00
full_transparency_shim.c
har_dump.py add save HAR addon (#6368) 2023-09-24 13:51:22 +00:00
http_manipulate_cookies.py Bump the github-actions group with 3 updates (#6701) 2024-03-06 21:54:11 +01:00
httpdump.py fix some typos (#6728) 2024-03-11 08:19:36 +01:00
jsondump.py Bump the github-actions group with 3 updates (#6701) 2024-03-06 21:54:11 +01:00
link_expander.py
mitmproxywrapper.py
modify_body_inject_iframe.py
ntlm_upstream_proxy.py Migrate to ruff (#6433) 2023-10-31 16:03:53 +01:00
portfile.py Add portfile support (#7724) 2025-05-23 16:49:08 +02:00
README.md examples/contrib: link to security plugin 2023-11-06 22:56:24 +01:00
remote-debug.py Migrate to ruff (#6433) 2023-10-31 16:03:53 +01:00
save_streamed_data.py Bump the github-actions group with 3 updates (#6701) 2024-03-06 21:54:11 +01:00
search.py
sslstrip.py Bump the github-actions group with 3 updates (#6701) 2024-03-06 21:54:11 +01:00
suppress_error_responses.py Bump the github-actions group with 3 updates (#6701) 2024-03-06 21:54:11 +01:00
test_jsondump.py Bump the github-actions group with 3 updates (#6701) 2024-03-06 21:54:11 +01:00
test_xss_scanner.py
tls_passthrough.py Bump the github-actions group with 3 updates (#6701) 2024-03-06 21:54:11 +01:00
upstream_pac.py Add script to enable use of pac server (#7397) 2024-12-16 20:31:42 +01:00
xss_scanner.py Bump the github-actions group with 3 updates (#6701) 2024-03-06 21:54:11 +01:00

Community-Contributed Examples

Examples in this directory are contributed by the mitmproxy community.
If you developed something thats useful for a wider audience, please add it here!

Additional Examples Hosted Externally

Maintenance

⚠️ The examples in this directory are not actively maintained by the core developers.

We welcome PRs that add/fix/modernize/clean up code.