Commit Graph

8585 Commits

Author SHA1 Message Date
Henrique
4464648c38 Logic to handle multiple instances using CommandHistory. 2019-11-25 13:08:09 -05:00
Henrique
5b582a76a8 Make windows happy once again 2019-11-25 10:48:42 -05:00
Henrique
1c8abaed78 Make windows happy 2019-11-25 10:39:36 -05:00
Henrique
ed7f0b4b39 Making windows happy 2019-11-25 10:24:46 -05:00
Henrique
640bec24e5 Oops, forgot to add the tests for the CommandHistory addon 2019-11-25 10:23:51 -05:00
Henrique
1b5337e4d4 Making windows happy 2019-11-25 09:17:40 -05:00
Henrique
0d29804ab8 Moved confdir check logic into the addon 2019-11-25 08:56:44 -05:00
Henrique
6a7f27ff15 Make mypy happy 2019-11-24 20:21:14 -05:00
Henrique
7b386d5393 Fixed the logic according to some tests, added new tests 2019-11-24 20:13:25 -05:00
Henrique
1d43abcb28 Making the linter happy 2019-11-23 16:36:52 -05:00
Henrique
6d67286bd1 Fix to check if command_history file exists prior to trying to read it 2019-11-23 16:31:21 -05:00
Henrique
01b40e2c36 Fix to create the confdir in case it doesn't exist 2019-11-23 16:31:03 -05:00
Henrique
a866b424fe Moved command history to an addon and added a new feature:
* If you start typing a command and press "up" only commands starting
with that string will be returned
2019-11-23 15:31:00 -05:00
Maximilian Hils
80973bd6ec remove unused hyperlink in README.rst 2019-11-23 18:03:59 +01:00
Maximilian Hils
e768f5ba83 use OpenSSL's hostname validation 2019-11-23 18:02:45 +01:00
Maximilian Hils
0f868e9924 update cryptography 2019-11-23 01:06:23 +01:00
Henrique
16b55f9476 Implemented feature to save command history to a file. This allows users
to reuse their commands the next time they open mitmproxy
2019-11-22 10:00:17 -05:00
Maximilian Hils
bbb7eb692f
Merge pull request #3718 from mhils/simplify-install-instructions
Simplify install instructions
2019-11-21 22:50:34 +01:00
Maximilian Hils
3550bdfe00
Merge pull request #3693 from typoon/fix-command-bar-issue-3259
Improve Command Bar UX
2019-11-21 14:13:08 +01:00
Maximilian Hils
f7a3e903ac fix keybind for loading flows 2019-11-21 14:06:03 +01:00
Maximilian Hils
6ad7b575bb simplify install instructions 2019-11-20 18:45:36 +01:00
Maximilian Hils
3a7ca3e1e7
Merge pull request #3717 from Jessonsotoventura/replay
Added Replay to new table UI
2019-11-20 17:28:27 +01:00
Jesson Soto Ventura
dc2d8f50ca added column for mark and replay 2019-11-19 22:39:00 -05:00
Maximilian Hils
223335111d
Delete issue_template.md
this is in .github/ now.
2019-11-19 21:36:56 +01:00
Maximilian Hils
51cea9eee3
update badges 2019-11-19 21:36:20 +01:00
Maximilian Hils
fa100b9d16 lint! 2019-11-19 21:11:49 +01:00
Maximilian Hils
228e1c74c2 fix tests 2019-11-19 18:37:47 +01:00
Maximilian Hils
b9f3a310a7
Merge pull request #3714 from sethb157/ipv6_only
Add support for IPv6-only environments
2019-11-19 18:32:29 +01:00
Maximilian Hils
c7eedcbc1a fix 'set' to only accept a single argument 2019-11-19 18:29:22 +01:00
Maximilian Hils
76e6484107 fix lexing, sort of 2019-11-19 18:21:14 +01:00
Maximilian Hils
e92b957e3a
Use Github Actions for CI (#3713)
switch to github actions for CI
2019-11-19 18:15:08 +01:00
Seth Barrios
1ada2e26e8 Add support for IPv6-only environments
Previously, the proxy would attempt to bind to an IPv6 + IPv4 enabled socket.
On failure, it would try to bind to an IPv4 only socket. If that failed, the
proxy would fail to start. This update makes it so that the proxy also tries
to bind to an IPv6-only socket, which is necessary in environments where IPv4
is disabled.

In short, the proxy will try binding in the following order, only moving
to the next step when binding fails:
IPv6 + IPv4 -> IPv4 only -> IPv6 only -> proxy fails to start.
2019-11-18 15:26:49 -08:00
Maximilian Hils
74f5fa6a77 wip 2019-11-18 22:03:51 +01:00
Maximilian Hils
70e3871fdb pin pyopenssl to fix builds, refs #3692 2019-11-18 17:11:15 +01:00
Maximilian Hils
7bf06f8ae0 fix coverage 2019-11-18 05:19:06 +01:00
Maximilian Hils
dd556f052b coverage++ 2019-11-18 04:34:23 +01:00
Maximilian Hils
da0755106d adjust test 2019-11-18 03:54:18 +01:00
Maximilian Hils
f75a95acea fix vararg handling 2019-11-18 03:45:16 +01:00
Maximilian Hils
cb723c53fa revamp command processing
- Display the parameter name instead of the parameter type
  whenver users interact with commands. This makes it easy to
  enter commands just by their signature. We may want to expose type
  information in the command list, but some quick testing showed that
  this are rather intuitive anyways.
- Add shift tab backward cycling for the command completion.
- Use inspect.Signature instead of homebrew argument matching solution.
  This gets rid of quite a bit of cruft.
- Remove some type checking hacks in mitmproxy.types
2019-11-18 03:05:41 +01:00
Maximilian Hils
8a6370f1c2 make command parameter names more descriptive 2019-11-18 02:55:37 +01:00
Maximilian Hils
cb22fc68d1 adjust remote debug example to latest pycharm version 2019-11-18 02:52:20 +01:00
Henrique
8b52ea248e Added coverage for the changes made 2019-11-17 11:26:20 -05:00
Henrique
39a6d4860c Fixed issue with string parameters between quotes that do not have a
space
2019-11-17 10:24:49 -05:00
Henrique
fbcaab2aba Added return signature to methods on commander.py 2019-11-16 20:15:27 -05:00
Henrique
13fe07f48f Brought coverage up to 94% on test_commander.py 2019-11-16 20:14:38 -05:00
Henrique
7779eef572 Various changes to address PR comments
Made a change to make `CommandManager.execute` the main entry point for
executing commands and made `call_strings` into a private method.
2019-11-16 17:01:47 -05:00
Henrique
373cc945c0 Removing dead code 2019-11-16 13:14:57 -05:00
Henrique
a0ef36727e Forgot to remove the empty _parse_cmd function 2019-11-16 09:18:32 -05:00
Henrique
79caf3a458 Fixing issues pointed during PR review 2019-11-16 09:16:50 -05:00
Maximilian Hils
ac22aee2f5 cleanup mypy usage 2019-11-16 15:14:30 +01:00