aboutsummaryrefslogtreecommitdiffstats
path: root/examples/complex
Commit message (Collapse)AuthorAgeFilesLines
* added add-ons that enhance the performance of web application scanners. (#3961)anneborcherding2020-05-046-0/+646
| | | | | * added add-ons that enhance the performance of web application scanners. Co-authored-by: weichweich <14820950+weichweich@users.noreply.github.com>
* examples: reformat to prevent too long linesThomas Kriechbaumer2020-04-113-35/+48
|
* Merge pull request #3846 from kimbo/kl/block-dohThomas Kriechbaumer2020-04-052-0/+178
|\ | | | | Example for detecting/blocking DNS over HTTTPS queries
| * broke up long line into multiple lineskimbo2020-04-041-1/+54
| |
| * replace scraping and DNS lookups with static listkimbo2020-04-041-127/+3
| |
| * fix lint errorskimbo2020-03-041-3/+17
| |
| * add block doh example to examples/complex/READMEkimbo2020-03-041-0/+1
| |
| * example for blocking DNS queries over HTTPSkimbo2020-03-041-0/+234
| |
* | improve scripting docsThomas Kriechbaumer2020-04-041-1/+1
| |
* | lint!Maximilian Hils2020-04-031-1/+0
| |
* | fix nonblocking exampleMaximilian Hils2020-04-031-3/+3
|/ | | this fixes #3877
* Fix converting to HAR in case of void responseShrub, Aliaksei2019-11-291-2/+2
|
* Merge pull request #3693 from typoon/fix-command-bar-issue-3259Maximilian Hils2019-11-211-2/+2
|\ | | | | Improve Command Bar UX
| * adjust remote debug example to latest pycharm versionMaximilian Hils2019-11-181-2/+2
| |
* | cleanup mypy usageMaximilian Hils2019-11-163-1/+4
|/
* update mypyMaximilian Hils2019-11-121-2/+2
|
* bump depsThomas Kriechbaumer2019-09-281-0/+0
|
* fix lintingThomas Kriechbaumer2019-09-281-1/+1
|
* make dict comprehension more readableMaximilian Hils2019-09-051-1/+4
|
* Updated har_dump,py timings dictionary functionRamiBerm2019-09-031-1/+1
| | | | | | the HAR file spec (http://www.softwareishard.com/blog/har-12-spec/#timings) states that timings that do not apply for a certain requests should be set to -1, this example may set -1000 as a timings value for certain requests. This ends up producing invalid HAR files in many cases. My proposed fix is to assign -1 into the dic and only multiply by 1000 for other values
* Fix several DeprecationWarning: invalid escape sequenceMickaël Schoentgen2019-01-052-3/+3
| | | | Signed-off-by: Mickaël Schoentgen <contact@tiger-222.fr>
* Corrected keep_host_header usage optionAlex Lauerman2018-10-251-1/+1
| | | I tested this locally to verify this change is correct.
* [examples/xss_scanner] replace relative importDavid Kremer2018-08-151-3/+3
| | | | | | | | | | | | | 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.
* Update CLI usage instructionsPierre Cavan2018-06-261-3/+3
|
* View API slightly extended; codebase cleaned in some pointsmadt1m2018-06-131-1/+1
|
* websocket: inject messages via flowThomas Kriechbaumer2018-05-161-0/+23
|
* fix tcp exampleThomas Kriechbaumer2018-05-111-12/+11
|
* Merge pull request #3106 from cortesi/noprintMaximilian Hils2018-05-082-3/+5
|\ | | | | Ditch the addon stdout wrapper
| * Ditch the addon stdout wrapperAldo Cortesi2018-05-082-3/+5
| | | | | | | | | | | | This results in a 30% improvement in our core request throughput. Fixes #3102
* | har_dump example cmdline invocation0xHJK2018-05-081-0/+6
|/
* Revamp dup_and_replay exampleAldo Cortesi2018-05-051-4/+10
| | | | | | | | - Exposes view.add as a command - Copes with cases where a view addon isn't present - Avoids infinite loop caused by replaying replays Fixes #3096
* fix Python 3.6 variable type annotations #3053oscure762018-04-143-7/+7
|
* Misc. typosluz.paz2018-02-243-6/+6
| | | | | | | | | | | | | | Found via `codespell -q 3 -I ../mitmproxy-word-whitelist.txt` Where whitelist contains: ``` cas doubleclick nd ot seeked statics te thru ```
* Extend mypy checking, fix #2194 (#2819)Arushit Mudgal2018-02-034-49/+62
|
* rename TLS/SSL-related attributesThomas Kriechbaumer2018-01-062-3/+3
| | | | | | SSL is an outdated protocol superseeded by TLS. Although the commonly used library is called OpenSSL, it is no reason to still use outdated language for attributes.
* Added scanning for CSS injection and iframe injectionDavid Dworken2017-10-171-5/+10
|
* fix #2477 (#2556)Suraj Tripathi2017-09-011-1/+1
|
* update streaming docsUjjwal Verma2017-07-041-1/+1
|
* Merge pull request #2265 from cortesi/addonsAldo Cortesi2017-04-272-25/+26
|\ | | | | Addons and addon testing
| * Addons and addon testingAldo Cortesi2017-04-262-25/+26
| | | | | | | | | | | | | | | | - Fix some loading sequence bugs affecting command-line script invocation - Allow addons to over-ride existing options (with a warning). We need this for reloading. - Convert har_dump to new-style arguments, fix and re-instate its test suite. - Covnert miscelaneous other exmples to new-style args.
* | Merge pull request #2270 from F1ashhimself/masterMaximilian Hils2017-04-261-1/+1
|\ \ | | | | | | Update readme for complex examples
| * | Update readme for complex examplesMaksim Beloborodko2017-04-261-1/+1
| |/
* / fix #2250, add type info to cookie moduleMaximilian Hils2017-04-261-1/+1
|/
* Revamp how addons workAldo Cortesi2017-04-251-2/+1
| | | | | | | | | | | | | | | | | | | - 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.
* addon loader: add boot_into, which replaces returning from start()Aldo Cortesi2017-03-254-5/+5
| | | | | While we're here, expand test coverage for addonmanager to 100%, and promote to individual coverage.
* addons: start -> load throughoutAldo Cortesi2017-03-254-4/+4
|
* Remove test handlers by using taddons.RecordingMasterAldo Cortesi2017-03-161-43/+0
| | | | | This also means expanding and tweaking the recording master API, which we reflect through the current test suite
* Enable custom options for addonsAldo Cortesi2017-03-144-11/+12
| | | | | | | | - Add an options parameter to the start() event. This is to be used by addons on startup to add custom options. - Add a running() event that is called once the proxy is up and running. - With the new paradigm we can't log during master __init__, so add a tiny termstatus addon to print proxy status to terminal once we're running.
* fix tcp.Address leftoversMaximilian Hils2017-03-081-1/+1
| | | this fixes the issue described in https://github.com/mitmproxy/mitmproxy/issues/2119#issuecomment-285067292
* Merge branch 'master' into on-issuesNikhil Soni2017-03-032-7/+410
|\