Commit Graph

8677 Commits

Author SHA1 Message Date
Maximilian Hils
3bbcbacd68 map local: 404 if not found 2020-07-10 14:28:12 +02:00
sidahmed-malaoui
ef13270ff2
Command that can generates errors in the documentation
In the title _Work-around to redirect traffic originating from the machine itself_, add the flag `-H` to `sudo` command to avoid errors on certain Linux based OS.
2020-07-10 12:43:37 +01:00
Martin Plattner
434538f11d Merge branch 'maplocal-addon' of github.com:mplattner/mitmproxy into maplocal-addon 2020-07-10 13:36:37 +02:00
Maximilian Hils
fe1b76bdef refactor spec parsing, map_local candidate generation 2020-07-10 13:23:13 +02:00
tunnelpr0
817216116c
Update app.py
Updated DNS Rebind Protection RegEx Pattern
2020-07-10 12:12:43 +02:00
tunnelpr0
be8cb243b5
Update CHANGELOG
Fixed the DNS Rebind Protection for secure support of IPv6 addresses (@tunnelpr0)
2020-07-09 21:33:06 +02:00
tunnelpr0
253220f733
Update app.py
Fixed the DNS Rebind Protection for secure handling of IPv6 addresses
2020-07-09 21:28:09 +02:00
Martin Plattner
eca6dc4d1c maplocal addon: fix linting 2020-07-08 23:58:02 +02:00
Martin Plattner
8942ae88d5 maplocal addon: update docs 2020-07-08 23:53:44 +02:00
Martin Plattner
41c99810ef maplocal addon: improve tests 2020-07-08 23:52:22 +02:00
Martin Plattner
55bba92653 maplocal addon: improvements 2020-07-08 23:39:44 +02:00
Martin Plattner
53644de820 maplocal addon: add some tests 2020-07-08 01:34:48 +02:00
Martin Plattner
b1609697cd maplocal addon: minor improvements 2020-07-08 01:34:14 +02:00
Martin Plattner
7022a54737 maplocal addon: add mimetype guessing 2020-07-07 23:19:29 +02:00
Martin Plattner
1b6b3cd96c add MapLocal addon draft 2020-07-07 16:12:23 +02:00
Thomas Kriechbaumer
51b9ee109e
Merge pull request #4067 from gorogoroumaru/master
Fix "RuntimeError: dictionary changed size during iteration" in the "expire" function of "mitmproxy/certs.py"
2020-07-06 19:10:38 +02:00
gorogoroumaru
b456c3afa1 Changed iteration to list comprehension in order to prevent "RuntimeError: dictionary changed size during iteration" 2020-07-06 19:01:10 +02:00
Thomas Kriechbaumer
49e10d7cc2 add http trailers changelog entry 2020-07-06 18:54:55 +02:00
Thomas Kriechbaumer
46a0f69485
Merge pull request #4042 from sanlengjingvv/develop
support HTTP/2 trailers
2020-07-06 17:14:17 +02:00
Thomas Kriechbaumer
c0f62cc559 fix missing message body and end_stream for trailers 2020-07-06 17:04:16 +02:00
Thomas Kriechbaumer
828ba0c2e7 refactor h2 trailer support
This allow's trailers without the initial Trailer header announcement. In HTTP/2 the stream ends with any frame containing END_SREAM. In the case of trailers, it is a final HEADERS frame after all the DATA frames. Therefore we do not need to explicitly check for the trailer announcement header, but can simply wait until the response message / stream has ended.
2020-07-06 01:05:26 +02:00
gorogoroumaru
0e998e9b52
Fix typespec_to_str funcion to process typing.Optional[int] (#4066)
* Fix typespec_to_str funcion to process typing.Optional[int]

* Add test

* Add test

Co-authored-by: gorogoroumaru <zokutyou2@gmail.com>
2020-07-05 11:20:39 +02:00
Maximilian Hils
65318603ae
Merge pull request #4058 from Vane11ope/vane11ope/fix
List was not cycled right for tab auto-completion
2020-07-05 04:04:44 +02:00
Vane11ope
ecf076cb24 Add tests for list completer 2020-07-05 10:40:48 +09:00
Vane11ope
2e0c078e7c Use -1 as an initial value for the pos 2020-07-05 04:55:10 +09:00
Maximilian Hils
d52b17f200
Merge pull request #4065 from mitmproxy/codecov-fails-too-much
Don't fail on covecov errors
2020-07-04 12:29:36 +02:00
Maximilian Hils
96ce21687e blacklist -> blocklist 2020-07-04 12:09:51 +02:00
Maximilian Hils
b46ffe1395 don't fail on covecov errors
this happens quite a bit, so let's stop failing tests for that.
2020-07-04 11:52:26 +02:00
Maximilian Hils
491123df23
Merge pull request #4064 from TeddJohnson/patch-1
Update concepts-certificates.md
2020-07-04 11:51:25 +02:00
Maximilian Hils
c60c3dbb75 docs: consistently use backticks for highlighting 2020-07-04 11:29:53 +02:00
Maximilian Hils
75ef914c05
Merge pull request #4062 from mhils/fix-tests
Minor addon improvements, fix tests
2020-07-04 11:29:02 +02:00
Maximilian Hils
50d7b4e84f
don' 2020-07-04 11:20:34 +02:00
Maximilian Hils
0ee0cf5668 minor addon improvements, fix tests 2020-07-04 11:19:23 +02:00
Tedd Johnson
c3d3b75517
Update concepts-certificates.md
{{< highlight bash  >}} doesn't render properly on the wiki, so converted to codeblock
2020-07-04 01:14:21 -07:00
Maximilian Hils
cf158022d9
Merge pull request #4060 from mplattner/mapremote-addon
add mapremote addon to modify request URLs
2020-07-03 19:08:11 +02:00
Martin Plattner
cee4da4e8c fix docs and url encoding 2020-07-03 16:31:41 +02:00
Maximilian Hils
417c213dd7
minor docs improvements 2020-07-03 15:29:17 +02:00
Martin Plattner
89fad1e2b1 add mapremote addon to modify request URLs 2020-07-03 14:27:37 +02:00
Thomas Kriechbaumer
288ce65d73 add h2 trailers example and fix sending 2020-07-03 12:49:31 +02:00
Thomas Kriechbaumer
ebb061796c unify HTTP trailers APIs 2020-07-02 18:31:47 +02:00
Maximilian Hils
73163c876c
Merge pull request #4046 from mplattner/modify-body-addon
Replace replacements addon with new modify body addon
2020-07-02 15:02:37 +02:00
Martin Plattner
fe662b4282 improve modify addons docs
fixes #3945
2020-07-02 13:49:20 +02:00
sanlengjingvv
d589f13a1d fix lint error 2020-07-02 18:46:38 +08:00
Martin Plattner
a782bb47a7 fix linting error 2020-07-02 12:42:14 +02:00
sanlengjingvv
22eb492a13 update FLOW_FORMAT_VERSION version
fix error when dump flow with http trailers
add testcase for http trailers
2020-07-02 18:32:12 +08:00
Vane11ope
e43c4e3cb1 Fix a type error 2020-07-02 11:31:04 +09:00
Vane11ope
7806a34858 List was not cycled right for tab autocompletion 2020-07-02 09:46:24 +09:00
Martin Plattner
aee1b81260 fix test coverage 2020-07-01 23:51:55 +02:00
Maximilian Hils
2a4933eb9d minor fixes 2020-07-01 22:52:35 +02:00
Martin Plattner
2a408c9379 refactor modify addons
Use a universal ModifySpec class to represent rules.
ModifyHeaders now supports reading the header value from a  file.
2020-07-01 13:25:28 +02:00