mitmproxy/examples/contrib
Anatoli Babenia cff98a30e2
Fix HAR dump (#4439)
* Fix `KeyError: 'Unknown options: hardump'` in HAR test_simple

The reason was an invalid import of `connections` which is gone
in d159897d98, but the loading error
was silently ignored (#4438) resulting in a misleading exception
at a later stage.

This still doesn't make the test suite run, because it is better
to fix one error at a time.

The way to run tests from examples.

    ln -sr test/conftest.py examples
    pytest examples/contrib/test_har_dump.py -k simpl

The way to see the execution flow with silenced exceptions.

    from hunter import trace, Q
    trace(Q(stdlib=False), ~Q(filename_contains='site-packages'))

* Fix `TypeError: invoke() takes 3 positional arguments but 4 were given`

* Fix `TypeError: 'bool' object is not callable`
2021-02-11 21:07:09 +01:00
..
webscanner_helper Merge pull request #4301 from Kriechi/pyupgrade-py36 2020-11-21 11:05:16 +01:00
README.md restructure examples 2020-06-23 16:00:14 +02:00
block_dns_over_https.py blacklist -> blocklist 2020-07-04 12:09:51 +02:00
change_upstream_proxy.py restructure examples 2020-06-23 16:00:14 +02:00
check_ssl_pinning.py pyupgrade --py36-plus mitmproxy/**/*.py 2020-11-20 19:25:26 +01:00
dns_spoofing.py restructure examples 2020-06-23 16:00:14 +02:00
full_transparency_shim.c restructure examples 2020-06-23 16:00:14 +02:00
har_dump.py Fix HAR dump (#4439) 2021-02-11 21:07:09 +01:00
jsondump.py Add a JSON dump script: write data into a file or send to an endpoint as JSON (#2861) 2020-07-14 16:35:03 +02:00
link_expander.py restructure examples 2020-06-23 16:00:14 +02:00
mitmproxywrapper.py pyupgrade --py36-plus mitmproxy/**/*.py 2020-11-20 19:25:26 +01:00
modify_body_inject_iframe.py restructure examples 2020-06-23 16:00:14 +02:00
remote-debug.py restructure examples 2020-06-23 16:00:14 +02:00
sslstrip.py restructure examples 2020-06-23 16:00:14 +02:00
suppress_error_responses.py Added addon to suppress the sending of 502 Bad Gateway response… (#4299) 2020-11-20 09:15:12 +01:00
test_har_dump.py Fix HAR dump (#4439) 2021-02-11 21:07:09 +01:00
test_jsondump.py pyupgrade --py36-plus mitmproxy/**/*.py 2020-11-20 19:25:26 +01:00
test_xss_scanner.py restructure examples 2020-06-23 16:00:14 +02:00
tls_passthrough.py pyupgrade --py36-plus mitmproxy/**/*.py 2020-11-20 19:25:26 +01:00
xss_scanner.py revert some minor changes 2020-11-21 10:46:19 +01:00

README.md

Community-Contributed Examples

Examples in this directory are contributed by the mitmproxy community. We do not maintain them, but we welcome PRs that add/fix/modernize/clean up examples.