Commit Graph

9513 Commits

Author SHA1 Message Date
Maximilian Hils 4e5a0ae71d
charset detection: ignore case when searching in HTML (#4785) 2021-08-31 09:13:28 +00:00
Maximilian Hils d5bba9878b
Merge pull request #4780 from mhils/socks5-auth
Support SOCKS5 Authentication
2021-08-27 10:30:54 +02:00
Maximilian Hils f9ffe8279d socks5: use correct version for auth negotiation 2021-08-27 10:25:31 +02:00
Maximilian Hils f8826b29a2 cache socks5 auth for entire connection 2021-08-25 17:23:49 +02:00
Maximilian Hils 73d809a4c7 refactor proxyauth addon
the previous version was difficult to read,
this is hopefully better now.
2021-08-25 17:23:49 +02:00
Maximilian Hils a3eca0b859 socks5 upstream auth: use proxyauth option 2021-08-25 17:23:49 +02:00
Maximilian Hils c0fd6cfc09
Merge pull request #4779 from mhils/mitmweb-tcp
web: add support for viewing tcp flows
2021-08-25 13:35:37 +02:00
Maximilian Hils 550e1a4ab3
fix #3506 (#4777) 2021-08-23 19:35:31 +00:00
Maximilian Hils a6f673fb29
add python 3.10 trove classifier 2021-08-23 21:23:04 +02:00
Maximilian Hils 89beb31c8e web: make icon column sortable 2021-08-23 18:59:38 +02:00
Maximilian Hils e483aa544f force less variable calculation 2021-08-23 14:58:56 +02:00
Maximilian Hils fca21cbf72
GSoC Mitmweb Improvements (#4763)
* Add hover menu to FlowRow

* fix linting issue

* fix linting issue

* apply suggested changes

* add dropdown submenu

* apply requested change

* replace dropdown with popper.js-based implementation

* implement actions to  the menu

* clean FlowRow arguments

* web: major upgrades

This commit brings a bunch of under-the-hood mitmweb improvements:

 - migrate large parts of the codebase to typescript
 - introduce modern react testing conventions
 - vendor react-codemirror to silence warnings
 - use esbuild for both bundles and tests
 - move from yarn to npm
 - various fixes across the board

* web: fix options ducks

* add command bar to mitmweb

* fix app.py

* fix web test failure

* include command.js to commit

* fix optionsSpec.js

* transfer the argument suggestion into popup, show available commands, highlight currently typing argument

* fix lintings issue and test

* include package-lock.json

* add response to fetchMock

* update test

* update obsolete snapshot

* display help, description and add tab autocompletion

* change command history into mitmproxy's one

* move available commands popover to command help

* fix bug related to tab completion

* change CommandBar component into typescript, autoscroll overflowed result to bottom

* convert components in common and ContentView folder into typescript, and modified test

* fix bug of not dispatching when type in the field in FilterInput component

* make formatTimeStamp function return UTC time when updating snapshot in jest

* bind "this" to functions in CodeMirror

* convert components in FlowView, Header, Modal, ValueEditor into typescript

* applied requested changes

* [web] update fontawesome

* view: add id-based flow selection

* add raw `export` command

* contentviews: ignore empty data

* console: fix cert validity order

* major mitmweb upgrades

* fix tests

* fix web tests

* minor fixes

* please the coverage gods

* web: test coverage++, adjust commandbar

* web: update dependencies

* fix tests

* web: add backend tests

* web: convert everything to TypeScript

* web: fix HTTP trailer update

* tests++

Co-authored-by: zokutyou2@gmail.com <zokutyou2@gmail.com>
2021-08-23 11:54:54 +02:00
Maximilian Hils d55aa7ea42 tests++ 2021-08-23 11:48:27 +02:00
Maximilian Hils 7219284d44 web: fix HTTP trailer update 2021-08-23 11:22:11 +02:00
Maximilian Hils 3589ec2f58 web: convert everything to TypeScript 2021-08-23 11:01:43 +02:00
Jinjie Zhang 0c366f6436 feat: add test script for socks5auth 2021-08-23 16:55:57 +08:00
Maximilian Hils c5e3e3d636 web: add backend tests 2021-08-23 09:35:47 +02:00
Maximilian Hils 81c911345b
improve TLS version mismatch error, fix #4758 (#4772) 2021-08-23 07:15:56 +00:00
Aldo Cortesi 4f925848d9
[requires.io] dependency update on main branch (#4768)
* [requires.io] dependency update

* Update setup.py

Co-authored-by: requires.io <support@requires.io>
Co-authored-by: Maximilian Hils <git@maximilianhils.com>
2021-08-22 18:33:09 +02:00
Jinjie Zhang 5876e431ce fix: fix unused ctx import 2021-08-22 21:36:08 +08:00
Jinjie Zhang 9d31a66570 feat: add --socks5auth option to support socks5 userpassword authentication 2021-08-22 21:31:29 +08:00
Maximilian Hils d9d9a20ef2 tls: fix TLS1 constant
We accidentally reused the value for SSL3 here.
This is not as a bad as a it looks: First, neither version
is enabled by default. Second, because of how Python enums
work, this simply made the `TLS1` version unavailable
as an option (which is how I detected it).
2021-08-22 15:17:57 +02:00
Maximilian Hils d518622976
Update examples/contrib/README.md 2021-08-22 14:57:20 +02:00
Maximilian Hils 03606fb0c0 fix tests 2021-08-20 18:49:44 +02:00
Maximilian Hils 1f6015d72a web: update dependencies 2021-08-20 18:47:34 +02:00
Maximilian Hils 46cd40f493 web: test coverage++, adjust commandbar 2021-08-20 18:38:22 +02:00
Maximilian Hils 2945ba925b please the coverage gods 2021-08-20 15:10:14 +02:00
Maximilian Hils 8561a620c8 minor fixes 2021-08-19 19:15:51 +02:00
Maximilian Hils 3ad4949c0e fix web tests 2021-08-19 19:15:51 +02:00
Zoltán Reegn a92eb1c4c8
Add script instructions for MacOS to mitm.it (#4765) 2021-08-19 16:14:52 +02:00
Maximilian Hils 0585e690c4 fix tests 2021-08-19 10:53:46 +02:00
Aldo Cortesi f7f0ac8ba7
[requires.io] dependency update on main branch (#4764)
* [requires.io] dependency update

* Update setup.py

Co-authored-by: requires.io <support@requires.io>
Co-authored-by: Maximilian Hils <git@maximilianhils.com>
2021-08-19 10:35:14 +02:00
Maximilian Hils b320c6aa14 Merge remote-tracking branch 'origin/main' into gsoc 2021-08-18 17:39:01 +02:00
Maximilian Hils 65aa0a6ef5 major mitmweb upgrades 2021-08-18 17:38:22 +02:00
Maximilian Hils 46cf75d01e console: fix cert validity order 2021-08-18 17:33:26 +02:00
Maximilian Hils f9b63e973e
Remove asyncio event loop workaround for tornado (#4762)
* remove asyncio event loop workaround for tornado

* Update CHANGELOG.md
2021-08-18 14:12:39 +00:00
Alexander Prinzhorn edbb3d6791
update ws injection example, fixes #4751 (#4761)
* update ws injection example, fixes #4751

* Update websocket-inject-message.py

* Revert "Update websocket-inject-message.py"

This reverts commit 86b4cda2f4.

Co-authored-by: Maximilian Hils <github@maximilianhils.com>
Co-authored-by: Maximilian Hils <git@maximilianhils.com>
2021-08-18 11:37:28 +00:00
Povilas Balciunas b36ce70ead
Add more type hints (#4754)
* Add more type hints

* Update mitmproxy/net/tls.py

Co-authored-by: Thomas Kriechbaumer <Kriechi@users.noreply.github.com>

Co-authored-by: Maximilian Hils <github@maximilianhils.com>
Co-authored-by: Thomas Kriechbaumer <Kriechi@users.noreply.github.com>
2021-08-18 13:24:36 +02:00
Thomas Kriechbaumer 92518f3b67
Merge pull request #4747 from KORraNpl/korran/fix_DeprecationWarning_in_har_dump.py
Fix DeprecationWarning in har_dump.py
2021-08-13 22:42:25 +02:00
Maximilian Hils a7f27259a7 contentviews: ignore empty data 2021-08-12 10:21:06 +02:00
Maximilian Hils f8b4c7bd44 add raw `export` command 2021-08-12 10:19:49 +02:00
Maximilian Hils 8866cc31bd view: add id-based flow selection 2021-08-12 10:18:56 +02:00
Maximilian Hils 94172594b3 [web] update fontawesome 2021-08-12 10:16:43 +02:00
KORraNpl 52c81c287e Fix DeprecationWarning in har_dump.py 2021-08-11 20:32:39 +02:00
Maximilian Hils ab6f1ebb44
Merge pull request #4741 from Mattwmaster58/main
case insensitive encoding
2021-08-10 08:18:56 +02:00
Maximilian Hils 4fb3e4c321 treat encoding names case-insensitively, fix #4735
Co-authored-by: Mattwmaster58 <mattwmaster58@gmail.com>
2021-08-10 08:11:34 +02:00
Maximilian Hils 1ce7e8e02e
[requires.io] dependency update on main branch (#4740)
* [requires.io] dependency update

* [requires.io] dependency update

* [requires.io] dependency update

* [requires.io] dependency update

* [requires.io] dependency update

* Update setup.py

Co-authored-by: requires.io <support@requires.io>
2021-08-10 08:07:49 +02:00
Maximilian Hils fb53df0cc1
expose full ClientHello object in tls_clienthello hook (#4744) 2021-08-09 15:41:05 +00:00
Maximilian Hils c4dd46c3db
[requires.io] dependency update on main branch (#4738)
* [requires.io] dependency update

* [requires.io] dependency update

* [requires.io] dependency update

Co-authored-by: requires.io <support@requires.io>
2021-08-08 16:16:27 +02:00
Maximilian Hils fcec63eebc fix tnetstread crash found via fuzzing 2021-08-08 16:12:37 +02:00