| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Plus matching binding in flowlist.
|
| |
|
|
|
|
|
|
|
|
|
| |
- Add client.replay [flows], client.replay.stop
- Add server.replay [flows], server.replay.stop
- The corresponding options for file loading are only read on startup, further
changes are ignored. In interactive contexts, replay is started with the
commands, not through option changes.
- Deprecate flow.replay, use replay.client instead
|
|
|
|
| |
Plus the matching bindings in the flow list.
|
|
|
|
|
| |
Add "view.mark [flows] bool" and "view.mark.toggle [flows]". Use this to rebind
marking keys in flowlist.
|
|
|
|
|
| |
bind G to "view.go -1"
bind g to "view.go 0"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This patch:
- Introduces a core update() event that should be invoked whenever flows are
changed outside of the normal lifecycle.
- Extend view.resolve to know about @all, which matches all flows in the view.
- Add a core flow.resume comand, which resumes flows and broadcasts an update event.
- Define flow list bindings for:
A -> flow.resume @all
a -> flow.resume @focus
d -> view.remove @focus
z -> view.remove @all
|
|
|
|
| |
Use this for our built-ins and the console commands.
|
|
|
|
| |
Use this to add a console.view.flow command and bind "enter" in flowlist.
|
|
|
|
| |
This shifts a set of flow list keys to keymaps. Much more to come.
|
|
|
|
|
| |
Support partial commands in console.command, use it to keybind "i" for
intercept, which prompts the user with ":set intercept=".
|
|
|
|
| |
The set command sets an option using the same syntax as commandline --set.
|
|
|
|
|
| |
This sketches out a keymap system for consone, and adds the first few top-level
commands and mappings.
|
|
|
|
|
| |
Simple browser that lets users view and select commands interactively.
Key binding for this is still to be sorted out.
|
| |
|
|
|
|
|
|
|
|
|
| |
Our first user-facing command. The following commands do the obvious things:
save.file @marked /tmp/flows
save.file @focus /tmp/flows
save.file @hidden /tmp/flows
save.file "~m get" /tmp/flows
|
|
|
|
|
|
|
| |
Options:
streamfile -> save_stream_file
streamfile_filter -> save_stream_filter
|
|
|
|
|
|
|
| |
This is our first built-in command, which will be used by very many other
commands.
Also add a --commands option to dump all commands, analogous to --options.
|
|
|
|
|
| |
- Add a command manager
- Sketch out the type system with a few simple supported types
|
|\
| |
| | |
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.
|
|\ \
| | |
| | | |
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.
|