| Commit message (Collapse) | Author | Age | Files | Lines |
|\
| |
| | |
fix #2250, add type info to cookie module
|
| | |
|
|\ \
| | |
| | | |
Integrate readstdin into readfile
|
| | | |
|
| | | |
|
| | | |
|
|\ \ \
| |_|/
|/| | |
fix #2257
|
| |/ |
|
|/ |
|
|\
| |
| | |
improve tests (extracted from #2011)
|
| | |
|
| |
| |
| |
| |
| | |
Options are now available globally on ctx, so the first argument of configure
is redundant.
|
| |
| |
| |
| |
| |
| |
| | |
Many addons currently save options on configure(), either as individual options
or sometimes by saving the entire options object. The current options should
simply be available on the ctx object, simplifying state management for addons
considerably.
|
| |
| |
| |
| |
| |
| |
| |
| | |
- Remove the watchdog dependency. We now just stat the script file every 2
seconds to check for an updated mtime.
- Further solidify our script testing, and in particular make the example tests
nicer. These should exemplify how we want users to test their own addon
scripts. More work on addon testing to follow.
|
|/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- 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.
|
| |
|
| |
|
|\
| |
| | |
scripts: redirect stdout to ctx.log.warn
|
| |
| |
| |
| |
| |
| |
| | |
Redirect messages written to stdout in scripts to ctx.log.warn.
(closes #1530)
Signed-off-by: Nikos Filippakis <nikolaos.filippakis@cern.ch>
|
|/
|
|
| |
Also handle errors in console options manager.
|
| |
|
|
|
|
|
| |
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()
|
| | |
|