| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
| |
this fixes #3877
|
| |
|
|\
| |
| | |
Improve Command Bar UX
|
| | |
|
|/ |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
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
|
|
|
|
| |
Signed-off-by: Mickaël Schoentgen <contact@tiger-222.fr>
|
|
|
| |
I tested this locally to verify this change is correct.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
| |
|
| |
|
|\
| |
| | |
Ditch the addon stdout wrapper
|
| |
| |
| |
| |
| |
| | |
This results in a 30% improvement in our core request throughput.
Fixes #3102
|
|/ |
|
|
|
|
|
|
|
|
| |
- 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
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Found via `codespell -q 3 -I ../mitmproxy-word-whitelist.txt`
Where whitelist contains:
```
cas
doubleclick
nd
ot
seeked
statics
te
thru
```
|
| |
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
| |
|
|\
| |
| | |
Addons and addon testing
|
| |
| |
| |
| |
| |
| |
| |
| | |
- 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.
|
|\ \
| | |
| | | |
Update readme for complex examples
|
| |/ |
|
|/ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- 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.
|
|
|
|
|
| |
While we're here, expand test coverage for addonmanager to 100%, and promote to
individual coverage.
|
| |
|
|
|
|
|
| |
This also means expanding and tweaking the recording master API, which we
reflect through the current test suite
|
|
|
|
|
|
|
|
| |
- 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.
|
|
|
| |
this fixes the issue described in https://github.com/mitmproxy/mitmproxy/issues/2119#issuecomment-285067292
|
|\ |
|
| | |
|
| | |
|
|/ |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|