aboutsummaryrefslogtreecommitdiffstats
path: root/examples
Commit message (Collapse)AuthorAgeFilesLines
* Added link_expander.py example to simple examples (#3348)jbrule2018-10-122-0/+29
|
* add websocket exampleThomas Kriechbaumer2018-10-091-0/+13
|
* [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.
* Merge pull request #3186 from andersonvom/masterAldo Cortesi2018-07-111-0/+0
|\ | | | | Add scripting example to intercept & change requests
| * Rename scripting fileAnderson Mesquita2018-06-081-0/+0
| | | | | | | | | | In order to add the more scripting examples, it makes sense to rename this file and avoid confusion.
* | Update CLI usage instructionsPierre Cavan2018-06-261-3/+3
| |
* | View API slightly extended; codebase cleaned in some pointsmadt1m2018-06-131-1/+1
|/
* typoMiroslav2018-05-271-1/+1
|
* websocket: inject messages via flowThomas Kriechbaumer2018-05-161-0/+23
|
* docs: console key binding docs and exampleAldo Cortesi2018-05-151-0/+11
|
* Fixing TyposJoaquin2018-05-132-2/+2
|
* fix tcp exampleThomas Kriechbaumer2018-05-111-12/+11
|
* Merge pull request #3106 from cortesi/noprintMaximilian Hils2018-05-084-9/+8
|\ | | | | Ditch the addon stdout wrapper
| * Ditch the addon stdout wrapperAldo Cortesi2018-05-084-9/+8
| | | | | | | | | | | | This results in a 30% improvement in our core request throughput. Fixes #3102
* | har_dump example cmdline invocation0xHJK2018-05-081-0/+6
|/
* events: document behaviour of done() more fullyAldo Cortesi2018-05-081-2/+6
|
* Merge pull request #3097 from cortesi/exampAldo Cortesi2018-05-051-4/+10
|\ | | | | Revamp dup_and_replay example
| * 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
* | Remove the tick eventAldo Cortesi2018-05-021-5/+0
|/ | | | Mitmproxy: the tickless wonder.
* fix Python 3.6 variable type annotations #3053oscure762018-04-145-9/+9
|
* fix example filenameThomas Kriechbaumer2018-04-131-1/+1
|
* Typo fixBarry Lee2018-03-101-4/+4
|
* Merge pull request #2922 from kajojify/new_exampleAldo Cortesi2018-02-262-16/+9
|\ | | | | Replaces upsidedown with mirror reflection
| * Replace upsidedown with mirror reflectionMiroslav2018-02-252-16/+9
| |
* | Misc. typosluz.paz2018-02-244-7/+7
|/ | | | | | | | | | | | | | Found via `codespell -q 3 -I ../mitmproxy-word-whitelist.txt` Where whitelist contains: ``` cas doubleclick nd ot seeked statics te thru ```
* All new documentationAldo Cortesi2018-02-229-0/+332
| | | | | | | | | | | | | | | | | | | | | | | | | | This patch does a lot. - Ditch sphinx in favor of hugo. This gives us complete control of the layout and presentation of our docs. Henceforth, docs will be hosted on our website rather than ReadTheDocs. - Create a simple, clean doc layout and theme. - Remove large parts of the documentaion. I've ditched anything that was a) woefully out of date, b) too detailed, or c) too hard to maintain in the long term. - Huge updates to the docs themselves: completely rewrite addons documentation, add docs for core concepts like commands and options, and revise and tweak a lot of the existing docs. With this patch, we're also changing the way we publish and maintain the docs. From now on, we don't publish docs for every release. Instead, the website will contain ONE set of docs for each major release. The online docs will be updated if needed as minor releases are made. Docs are free to improve during minor releases, but anything that changes behaviour sufficiently to require a doc change warrants a new major release. This also leaves us free to progressively update and improve docs out of step with our release cadence. With this new scheme, I feel CI over the docs is less important. I've removed it for now, but won't object if someone wants to add it back in.
* Merge pull request #2884 from kajojify/hotkeys-cleanupMaximilian Hils2018-02-201-4/+0
|\ | | | | Hotkeys cleanup. #2877
| * Hotkeys cleanupMiroslav2018-02-201-4/+0
| |
* | update log_events example documentationMaximilian Hils2018-02-201-3/+1
| |
* | add documentation for custom_option.pyMaximilian Hils2018-02-201-0/+10
|/
* Extend mypy checking, fix #2194 (#2819)Arushit Mudgal2018-02-034-49/+62
|
* Fix mistakes in examples/simple/Readme.md.Aniket Panjwani2018-01-291-16/+16
| | | | | 1. Delete row for script_arguments.py. 2. Add row for custom_option.py, using script_arguments.py's Description.
* 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
|
* fix mypy annotationsMaximilian Hils2017-05-263-12/+6
|
* Extend Mypy checking to pathodharsh vijay2017-05-023-4/+9
| | | | | | | | | | | | | | | | | | | * mypy checking pathod * initial commit , fixed errors * tox: mypy checking to pathod * Fixed mypy test failed * issue was with args in custom_contentview.py * tox: mypy checking to #2221 * follow-import=skip since we cant provide args to custom_contentview.py during mypy testing * Lint , Typo Fixed * code style: module import
* Fixed lint errorharsh vijay2017-04-291-1/+1
|
* lint error fixedharsh vijay2017-04-291-1/+1
|
* extend mypy example/simpleharsh vijay2017-04-2913-19/+34
|
* Merge pull request #2265 from cortesi/addonsAldo Cortesi2017-04-273-31/+38
|\ | | | | Addons and addon testing
| * Addons and addon testingAldo Cortesi2017-04-263-31/+38
| | | | | | | | | | | | | | | | - 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
|/
* configure(options, updated) -> configure(updated)Aldo Cortesi2017-04-262-10/+5
| | | | | Options are now available globally on ctx, so the first argument of configure is redundant.
* Revamp how addons workAldo Cortesi2017-04-256-49/+26
| | | | | | | | | | | | | | | | | | | - 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.
* proxapp -> proxapp.localMaximilian Hils2017-03-261-2/+2
| | | Chrome doesn't like it if there's no TLD.
* addon loader: add boot_into, which replaces returning from start()Aldo Cortesi2017-03-2513-20/+20
| | | | | While we're here, expand test coverage for addonmanager to 100%, and promote to individual coverage.