mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-22 15:37:45 +00:00
e46e064df3
test_xss_scanner.py was utterly failing because of a trouble (bug?) with the `monkeypatch` fixture failing to replace `gethostbyname` with the correct mock function. Indeed, when stepping through the code, the `gethostbyname` presumably mocked was reported as a builtin python function. The problem could then come from the fact that it is hard to monkeypatch builtin function in python. Using absolute imports seems to resolve the problem. |
||
---|---|---|
.. | ||
change_upstream_proxy.py | ||
dns_spoofing.py | ||
dup_and_replay.py | ||
full_transparency_shim.c | ||
har_dump.py | ||
mitmproxywrapper.py | ||
nonblocking.py | ||
README.md | ||
remote_debug.py | ||
sslstrip.py | ||
stream_modify.py | ||
stream.py | ||
tcp_message.py | ||
tls_passthrough.py | ||
websocket_inject_message.py | ||
xss_scanner.py |
Complex Examples
Filename | Description |
---|---|
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. |
full_transparency_shim.c | Setuid wrapper that can be used to run mitmproxy in full transparency mode, as a normal user. |
har_dump.py | Dump flows as HAR files. |
mitmproxywrapper.py | Bracket mitmproxy run with proxy enable/disable on OS X |
nonblocking.py | Demonstrate parallel processing with a blocking script |
remote_debug.py | This script enables remote debugging of the mitmproxy UI with PyCharm. |
sslstrip.py | sslstrip-like functionality implemented with mitmproxy |
stream.py | Enable streaming for all responses. |
stream_modify.py | Modify a streamed response body. |
tcp_message.py | Modify a raw TCP connection |
tls_passthrough.py | Use conditional TLS interception based on a user-defined strategy. |
xss_scanner.py | Scan all visited webpages. |