Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
| * | fix certificate verification | Maximilian Hils | 2015-11-01 | 2 | -7/+35 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit fixes netlib's optional (turned off by default) certificate verification, which previously did not validate the cert's host name. As it turns out, verifying the connection's host name on an intercepting proxy is not really straightforward - if we receive a connection in transparent mode without SNI, we have no clue which hosts the client intends to connect to. There are two basic approaches to solve this problem: 1. Exactly mirror the host names presented by the server in the spoofed certificate presented to the client. 2. Require the client to send the TLS Server Name Indication extension. While this does not work with older clients, we can validate the hostname on the proxy. Approach 1 is problematic in mitmproxy's use case, as we may want to deliberately divert connections without the client's knowledge. As a consequence, we opt for approach 2. While mitmproxy does now require a SNI value to be sent by the client if certificate verification is turned on, we retain our ability to present certificates to the client which are accepted with a maximum likelihood. | |||||
* | | Set default cert expiry to <39 months | Maximilian Hils | 2015-11-04 | 1 | -1/+2 | |
| | | | | | | This sould fix mitmproxy/mitmproxy#815 | |||||
* | | minor fixes | Maximilian Hils | 2015-11-01 | 2 | -2/+2 | |
|/ | ||||||
* | Merge branch 'http-models' | Maximilian Hils | 2015-09-28 | 16 | -428/+764 | |
|\ | ||||||
| * | test response model, push coverage to 100% branch cov | Maximilian Hils | 2015-09-27 | 4 | -21/+16 | |
| | | ||||||
| * | improve request tests, coverage++ | Maximilian Hils | 2015-09-26 | 6 | -28/+66 | |
| | | ||||||
| * | refactor response model | Maximilian Hils | 2015-09-26 | 12 | -256/+277 | |
| | | ||||||
| * | refactor request model | Maximilian Hils | 2015-09-26 | 10 | -275/+557 | |
| | | ||||||
* | | fix mitmproxy/mitmproxy#784 | Maximilian Hils | 2015-09-28 | 2 | -7/+3 | |
|/ | ||||||
* | minor fixes | Maximilian Hils | 2015-09-25 | 2 | -18/+14 | |
| | ||||||
* | also accept bytes as arguments | Maximilian Hils | 2015-09-22 | 1 | -6/+6 | |
| | ||||||
* | Headers: return str on all Python versions | Maximilian Hils | 2015-09-22 | 8 | -230/+257 | |
| | ||||||
* | revert websocket changes from 73586b1b | Maximilian Hils | 2015-09-21 | 1 | -10/+12 | |
| | | | | | | | The DEFAULT construct is very weird, but with None we apparently break pathod in some difficult-to-debug ways. Revisit once we do more here. | |||||
* | backport changes | Thomas Kriechbaumer | 2015-09-21 | 2 | -18/+19 | |
| | ||||||
* | minor encoding fixes | Maximilian Hils | 2015-09-21 | 2 | -12/+12 | |
| | ||||||
* | python 3++ | Maximilian Hils | 2015-09-21 | 7 | -120/+168 | |
| | ||||||
* | python3++ | Maximilian Hils | 2015-09-20 | 2 | -18/+14 | |
| | ||||||
* | python3++ | Maximilian Hils | 2015-09-20 | 1 | -3/+5 | |
| | ||||||
* | python3++ | Maximilian Hils | 2015-09-20 | 3 | -12/+22 | |
| | ||||||
* | python3++ | Maximilian Hils | 2015-09-20 | 3 | -21/+25 | |
| | ||||||
* | improve http error messages | Maximilian Hils | 2015-09-19 | 1 | -4/+12 | |
| | ||||||
* | experimental: don't interfere with headers | Maximilian Hils | 2015-09-18 | 2 | -32/+9 | |
| | ||||||
* | python3++ | Maximilian Hils | 2015-09-18 | 1 | -20/+20 | |
| | ||||||
* | properly handle SNI IPs | Maximilian Hils | 2015-09-18 | 1 | -2/+9 | |
| | | | | | | fixes mitmproxy/mitmproxy#772 We must use the ipaddress package here, because that's what cryptography uses. If we opt for something else, we have nasty namespace conflicts. | |||||
* | fix tests | Maximilian Hils | 2015-09-17 | 1 | -1/+3 | |
| | ||||||
* | python3++ | Maximilian Hils | 2015-09-17 | 5 | -68/+51 | |
| | ||||||
* | clean up http message models | Maximilian Hils | 2015-09-17 | 6 | -139/+74 | |
| | ||||||
* | http1: add assemble_body function | Maximilian Hils | 2015-09-17 | 3 | -13/+17 | |
| | ||||||
* | organize exceptions, improve content-length handling | Maximilian Hils | 2015-09-17 | 5 | -72/+107 | |
| | ||||||
* | adjust http1-related code | Maximilian Hils | 2015-09-16 | 9 | -22/+48 | |
| | ||||||
* | finish netlib.http.http1 refactor | Maximilian Hils | 2015-09-16 | 9 | -140/+155 | |
| | ||||||
* | wip | Maximilian Hils | 2015-09-15 | 18 | -846/+759 | |
| | ||||||
* | make clean_bin unicode-aware | Maximilian Hils | 2015-09-12 | 2 | -15/+26 | |
| | ||||||
* | don't yield empty chunks | Maximilian Hils | 2015-09-11 | 2 | -2/+3 | |
| | ||||||
* | fix mitmproxy/mitmproxy#759 | Maximilian Hils | 2015-09-10 | 1 | -6/+17 | |
| | ||||||
* | add ssl_read_select | Maximilian Hils | 2015-09-10 | 1 | -0/+21 | |
| | ||||||
* | add tcp.Address.__hash__ | Maximilian Hils | 2015-09-08 | 1 | -0/+3 | |
| | ||||||
* | let Headers inherit from object | Maximilian Hils | 2015-09-08 | 1 | -3/+3 | |
| | | | | fixes mitmproxy/mitmproxy#753 | |||||
* | Merge branch 'master' of https://github.com/mitmproxy/netlib | Maximilian Hils | 2015-09-05 | 1 | -10/+17 | |
|\ | ||||||
| * | http2: do net let Settings frames escape | Thomas Kriechbaumer | 2015-09-03 | 1 | -0/+2 | |
| | | ||||||
| * | http2: handle Ping in protocol | Thomas Kriechbaumer | 2015-09-03 | 1 | -10/+15 | |
| | | ||||||
* | | headers: adjust everything | Maximilian Hils | 2015-09-05 | 9 | -173/+155 | |
| | | ||||||
* | | finalize Headers, add tests | Maximilian Hils | 2015-09-05 | 1 | -41/+68 | |
| | | ||||||
* | | add new headers class | Maximilian Hils | 2015-09-05 | 1 | -1/+129 | |
|/ | ||||||
* | Merge branch 'master' of https://github.com/mitmproxy/netlib | Maximilian Hils | 2015-08-29 | 1 | -3/+0 | |
|\ | ||||||
| * | http2: fix priority stream dependency check | Thomas Kriechbaumer | 2015-08-26 | 1 | -3/+0 | |
| | | ||||||
* | | don't yield prefix and suffix | Maximilian Hils | 2015-08-29 | 1 | -6/+4 | |
| | | ||||||
* | | move sslversion mapping to netlib | Maximilian Hils | 2015-08-29 | 1 | -0/+17 | |
| | | ||||||
* | | wip | Maximilian Hils | 2015-08-28 | 4 | -22/+3 | |
|/ | ||||||
* | fix error messages | Maximilian Hils | 2015-08-25 | 1 | -2/+2 | |
| |