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. |
||
---|---|---|
.. | ||
addons | ||
complex | ||
pathod | ||
simple | ||
README.md | ||
keys.yaml |
README.md
Mitmproxy Scripting API
Mitmproxy has a powerful scripting API that allows you to control almost any aspect of traffic being proxied. In fact, much of mitmproxy’s own core functionality is implemented using the exact same API exposed to scripters (see mitmproxy/addons).
This directory contains some examples of the scripting API. We recommend to start with the ones in simple/.
⚠️ | If you are browsing this on GitHub, make sure to select the git tag matching your mitmproxy version. |
---|
Some inline scripts may require additional dependencies, which can be installed using
pip install mitmproxy[examples]
.