| Commit message (Collapse) | Author | Age | Files | Lines |
|\
| |
| | |
Update mypy, sans-io adjustments
|
| | |
|
|/ |
|
|
|
|
| |
Signed-off-by: Mickaël Schoentgen <contact@tiger-222.fr>
|
| |
|
|
|
|
|
| |
We store a lot more than just the CAs in our configuration directory. Clarify
the option name.
|
|
|
|
| |
fixes #2266
|
| |
|
| |
|
| |
|
|
|
|
| |
s/console_order/view_order
s/console_order_reversed/view_order_reversed
|
|\
| |
| | |
Update PyInstaller, add dev version info to builds.
|
| | |
|
|/
|
|
|
|
|
|
|
|
| |
The set of people who understand "0.0.0.0" (and/or "::") is a subset of
the set of people who understand "*", so we can make things easier to understand
by using the less technical notation.
Empirical Evidence:
- https://discourse.mitmproxy.org/t/unable-to-use-mitmproxy-on-windows/735
- https://discourse.mitmproxy.org/t/how-to-view-the-proxy-servers-url/23
|
| |
|
|
|
|
|
|
| |
This makes it possible to specify more specific type annotations at runtime,
so that both mypy and our command system are happy. The .argument(name, type=)
syntax is similar to click's, so it should be fairly extensible if we need it.
|
|
|
|
|
|
|
|
|
| |
This resolves as a string during MyPy checks, but at runtime has an additional
attribute that is a command that returns valid options.
This is very ugly and clumsy, basically because MyPy is super restrictive about
what it accepts as a type. Almost any attempt to construct these types in a
more sophisticated way fails in one way or another. I'm open to suggestions.
|
| |
|
|
|
|
| |
(cherry picked from commit 31ef7f149e4553eb9403634c0eec6de4d0123386)
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
Instead of having the core addon do postprocessing on body_size_limit,
we add a cache to the parsing function. First, this avoids any potential issues
with options and _processed getting out of sync. As anecdotal evidence,
the previous implementation did not clear _processed when body_size_limit was
reset to None. Second, it achieves the same end result without introducing a new
concept of a "_processed" scratch space. Third, it works even if addons aren't present,
and does not require workarounds as previously present in test_http2.py.
refs https://github.com/mitmproxy/mitmproxy/pull/2484#pullrequestreview-53101507
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
Use this to simplify meta-commands in console, and to create a console_choose
command that prompts the user for a choice, and then executes a command with
variable substitution.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This PR introduces the cuts addon, a flow dissector that allows you to select
and operate on specific components of flows. It also adds the first consumer
for cuts - the cuts.save command.
Save the content of the focus to /tmp/foo:
cuts.save s.content|@focus /tmp/foo
Save the URL and response content-type headers for all flows currently shown to
file, comma-separated, one flow per line:
cuts.save s.url,q.header[content-type]|@focus /tmp/foo
We also use this to replace the body save shortcut in the console flowlist.
|
|\
| |
| | |
Commands
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
| |
| |
| |
| |
| |
| |
| | |
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
|
|\ \
| |/
|/| |
bump cryptography min-version
|
| |
| |
| |
| | |
This removes OpenSSL v0.9.8 support.
|
|/ |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
We get little benefit from our mypy QA checks at the moment, because we skip
imports. This patch is what's needed to make mypy succeed with imports on a
single file: master.py
It also updates mypy to the current version, and enables a QA check.
Mypy bugs I encountered:
dict.update with kwargs not supported:
https://github.com/python/mypy/issues/1031
property setters and getters must be adjacent:
https://github.com/python/mypy/issues/1465
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
We get little benefit from our mypy QA checks at the moment, because we skip
imports. This patch is what's needed to make mypy succeed with imports on a
single file: master.py
It also updates mypy to the current version, and enables a QA check.
Mypy bugs I encountered:
dict.update with kwargs not supported:
https://github.com/python/mypy/issues/1031
property setters and getters must be adjacent:
https://github.com/python/mypy/issues/1465
|
|
|
|
|
| |
- Options are now explicitly initialized with an add_option method
- We have one canonical Options class - ditch dump.Options
|
| |
|
| |
|
| |
|
|
|
|
| |
fixes #1848
|
|
|
|
| |
This reverts commit 15ae88db08dbf2725c8c9f945f2006c4b2a10d46.
|
| |
|
|
|
|
|
|
| |
- native() -> always_str()
The old function name does not make sense on Python 3 only.
- Inline utility functions in message.py.
|
| |
|
| |
|