| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
Include tnetstring - we've made enough changes that this no longer belongs in
contrib.
|
|
|
|
| |
Fixes #2174
|
|
|
|
| |
Also clean up some leftovers from filter option name change.
|
|
|
|
|
| |
Dumper now also uses view_filter. Passing arguments to mitmdump is now
precisely equivalent to setting both filestream_filter and view_filter.
|
| |
|
| |
|
| |
|
|
|
|
| |
Fixes #2122
|
|
|
|
|
|
| |
- Move default client ciphers - no need to have a 10-line string default.
- Add some style guidance on options help
- Be consistent about reflowing options help
|
|
|
|
|
| |
All events are now handled by addons, and we no longer support any events on
master.
|
|\
| |
| | |
Rip out old handlers mechanism - all events are now handled in addons
|
| |
| |
| |
| |
| | |
All events are now handled by addons, and we no longer support any events on
master.
|
| |
| |
| |
| |
| |
| | |
While we're here, make checking that there are NO logs on the proxy more
efficient by setting a short timeout. This reduces total test suite running
time by 15% on my system.
|
| |
| |
| |
| |
| | |
This also means expanding and tweaking the recording master API, which we
reflect through the current test suite
|
| | |
|
|/
|
| |
When the path contains dot ".", replacing all dots will generate a non-exist result and raises a FileNotFoundError. Replacing only the last dot fixes this.
|
|\
| |
| | |
Extract flow reading into addons
|
| |
| |
| |
| |
| |
| |
| | |
This patch implements the lightweight event system I propose in #2144, adds a
custom event "processing_complete" that is triggered after file read, client
replay and server replay, and introduces a KeepServing addon to handle this for
mitmdump.
|
| |
| |
| |
| |
| | |
Clarify the plethora of invocation methods we've sprouted, correct some usages
in the codebase.
|
| |
| |
| |
| |
| |
| |
| |
| | |
This patch moves the final pieces of master functionality into addons.
- Add a ReadFile addon to read from file
- Add a separate ReadStdin addon to read from stdin, only used by mitmdump
- Remove all methods that know about io and serialization from master.Master
|
|/ |
|
| |
|
| |
|
|\
| |
| | |
Add MultiDictView.copy()
|
| | |
|
|\ \
| | |
| | | |
py3: __ne__ delegates to __eq__ by default
|
| | | |
|
|\ \ \
| |_|/
|/| | |
Replace from file through replacement editor #1458
|
| |\|
| | |
| | |
| | |
| | | |
Conflicts:
test/mitmproxy/addons/test_replace.py
|
| | | |
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | |
| | | |
We also now ignore unknown options in config files by default, and print a
warning if verbosity is incremented.
|
| | |
| | |
| | |
| | |
| | |
| | | |
Attributes on options share a namespace with options themselves. It's getting
too crowded on our Options object, so let's shift some obvious stuff into the
module.
|
| | | |
|
| | | |
|
| |/
|/|
| |
| |
| |
| |
| |
| | |
- 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.
|
| | |
|
|\ \
| | |
| | | |
Update proxyauth.py to add proxyauth metadata
|
| | | |
|
| | | |
|
|\ \ \
| | | |
| | | | |
make websocket flows serializable
|
| | |/
| |/|
| | |
| | | |
fixes #2113
|
|/ / |
|
| |
| |
| |
| | |
longer, but much clearer for devs who are unfamiliar with the codebase.
|
| |
| |
| |
| |
| | |
name, type, value matches natural language ($x is a bool with a default value of $y)
and also matches the python type annotation order of name: type = value
|
| | |
|
| |
| |
| |
| |
| | |
The mechanism for booleans attaches the short flag to whatever the opposite of
the default is.
|
| |
| |
| |
| |
| |
| | |
We now have one option "proxyauth". If this is "any", we accept any
credentials, if it starts with an @ it's treated as a path to an htpasswd file,
if it is of the form username:password it's a single-user credential.
|
| |
| |
| |
| |
| |
| |
| | |
- Regularise presentation and wording
- Help is mandatory for all options
- Auto-generate wording to say that sequence options can be passed multiple
times on the command-line
|