aboutsummaryrefslogtreecommitdiffstats
path: root/examples
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* addons: start -> load throughoutAldo Cortesi2017-03-2513-13/+13
|
* 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 in config filesAldo Cortesi2017-03-141-1/+2
| | | | | We also now ignore unknown options in config files by default, and print a warning if verbosity is incremented.
* Optmanager: handle unknown options in value setsAldo Cortesi2017-03-141-1/+1
|
* Enable custom options for addonsAldo Cortesi2017-03-1413-19/+30
| | | | | | | | - 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
|\
| * added XSS scanner example (#1907)David Dworken2017-02-271-0/+407
| |
| * Remove pytz in hardumpUjjwal Verma2017-02-251-7/+3
| |
* | Changes dns_spoofing example to use --keep-host-headerNikhil Soni2017-03-031-8/+3
|/
* protobuf: coverage++Thomas Kriechbaumer2017-02-191-1/+1
|
* .headers["host"] -> .host_headerMaximilian Hils2017-02-181-2/+2
|
* fix typoMaximilian Hils2017-02-141-1/+1
|
* Encoding fixes and testsUjjwal Verma2017-02-051-1/+2
|
* Reset the host header to the correct destinationAmmonite2017-01-301-0/+1
|
* Store original host in flow metadataAmmonite2017-01-291-7/+5
|
* Fix host extractionAmmonite2017-01-221-1/+1
|
* Follow PEP-8 and add commentAmmonite2017-01-221-5/+8
|
* Add blank lines for lintAmmonite2017-01-211-0/+2
|
* Change class nameAmmonite2017-01-201-2/+2
|
* Get the the original header in requestheaders instead of requestAmmonite2017-01-201-19/+28
|
* update stream.pyFeei2017-01-161-2/+2
|
* update log_events.pyFeei2017-01-161-2/+2
|
* rename logging.py example. this conflicted with Python's stdlibMaximilian Hils2016-12-191-0/+0
|