aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Remove Henrik's mitmplayback and mitmrecord.Aldo Cortesi2011-02-212-137/+0
| | | | | I've got a few other people testing the playback stuff, and I don't want them to get confused between the old and new tools.
* Move script hooks into the flow primitives.Aldo Cortesi2011-02-213-31/+52
| | | | This lets handle scripts in corner cases like playback situations more easily.
* Add --kill option to mitmdumpAldo Cortesi2011-02-216-11/+40
| | | | | | If this option is passed all requests that are not part of a replayed conversation are killed. If the option is not passed, such requests are passed through to the server as usual.
* Fix a subtle Unicode problem in Response.assembleAldo Cortesi2011-02-211-1/+1
| | | | | | | If msg is Unicode, the proto string is automatically promoted to Unicode. If the proto string is promoted to Unicode, then the FMT interpolation is also done in Unicode. If this happens, then binary data in content will cause an exception.
* First pass of playback function for mitmdump.Aldo Cortesi2011-02-217-2/+85
|
* Add a simple server playback state object.Aldo Cortesi2011-02-214-7/+87
| | | | | | | | We use a loose hash to match incoming requests with recorded flows. At the moment, this hash is over the host, port, scheme, method, path and content of the request. Note that headers are not included here - if we do want to include headers, we would have to do some work to normalize them to remove variations between user agents, header order, etc. etc.
* Clean up and strip down netstrings module.Aldo Cortesi2011-02-203-98/+13
|
* Certificates are now generated in a temporary per-session directory.Aldo Cortesi2011-02-207-62/+24
| | | | | | This means that certificates don't accumulate in the conf directory, users don't have to clear certificates if the CA is regenerated, and the user can specify a custom CA without invalid certificates being loaded inadvertently.
* Revamp SSL configuration.Aldo Cortesi2011-02-208-91/+102
| | | | | | | | - Move option parsing utiliities to proxy.py - Don't have a global config object. Pass it as an argument to ProxyServer. - Simplify certificate generation logic.
* Clean up certificate generation.Aldo Cortesi2011-02-209-156/+196
| | | | | | | | | | | | - Use templates for config files. We can re-introduce customization of the certificate attributes when we need them. - Split CA and cert generation into separate functions. - Generation methods provide an error return when generation fails. - When the user explicitly specifies a certificate, we don't generate it, but fail if it doesn't exist.
* Bump unit tests for flow.py and dump.pyAldo Cortesi2011-02-203-12/+26
|
* Implement state loading that doesn't change object identity.Aldo Cortesi2011-02-203-6/+87
| | | | We need this to let us load state from copied Flows returned from scripts.
* Stub out doc structure, add screenshots for configuring certs in Firefox.Aldo Cortesi2011-02-1914-111/+169
|
* Bump test coverage to 100% for flow.pyAldo Cortesi2011-02-192-28/+24
|
* Fix serialization when a Request has no associated client connection.Aldo Cortesi2011-02-192-2/+6
|
* Refactor Flow primitives to remove HTTP1.0 assumption.Aldo Cortesi2011-02-1910-192/+139
| | | | | | This is a big patch removing the assumption that there's one connection per Request/Response pair. It touches pretty much every part of mitmproxy, so expect glitches until everything is ironed out.
* First pass of script hooks for mitmdump.Aldo Cortesi2011-02-1813-54/+127
| | | | Also stub out docs, improve mitmdump error handling.
* Whitespace in mitmdump output.Aldo Cortesi2011-02-172-6/+6
|
* Refine verbose mitmdump output.Aldo Cortesi2011-02-171-8/+17
|
* Improve mitmdump text output.Aldo Cortesi2011-02-171-14/+21
|
* Whitepsace and extraneous code.Aldo Cortesi2011-02-172-4/+1
|
* Add filtering to mitmdump.Aldo Cortesi2011-02-173-11/+30
|
* Add file writing to mitmdump.Aldo Cortesi2011-02-176-8/+54
|
* Extract common SSL certificate option processingHenrik Nordstrom2011-02-165-98/+26
|
* Clean up README.mkAldo Cortesi2011-02-161-11/+0
| | | | HNO's changes are now back in base. Hooray.
* Extract common SSL certificate options into a group.Aldo Cortesi2011-02-163-45/+31
| | | | Use this only in mitmdump and mitmproxy for now.
* Tweaks and cleanups for mitmdump.Aldo Cortesi2011-02-163-30/+52
|
* Don't leave dangling browser connections for pipelined requests.Aldo Cortesi2011-02-163-2/+8
|
* Initial port of mitmdump to Flows.Aldo Cortesi2011-02-163-31/+74
|
* Fix minor display issues in console app.Aldo Cortesi2011-02-161-7/+9
|
* Un-break request replay.Aldo Cortesi2011-02-161-0/+1
|
* Fix a bug in HTTP 1.1 pipelining that caused Requests to be over-written.Aldo Cortesi2011-02-161-1/+2
| | | | | | We use the ClientConnection object to tie requests, responses and errors together. This is an HTTP 1.0 assumption, but we can fix it by just making copies of the connection object when we handle multiple requests.
* FlowMaster bugfixes and unit tests.Aldo Cortesi2011-02-164-10/+23
|
* Extract flow-specific Master operations into FlowMaster.Aldo Cortesi2011-02-163-20/+49
|
* Switch over to new serialization format.Aldo Cortesi2011-02-169-551/+18
| | | | Remove BSON from contrib.
* First draft of the new serialization mechanism.Aldo Cortesi2011-02-163-8/+52
|
* Import Will McGugan's netstring module.Aldo Cortesi2011-02-162-0/+293
| | | | | | | | Module is in the Public Domain. I expect to modify and extend this module, so I've imported into main library rather than contrib. Code has been reformatted to suite our code standard, tests have been extrated into /tests directory.
* Repair unit test to match removal of arg from Response class.Aldo Cortesi2011-02-161-1/+1
|
* drop unused protocol parameter from ResponseHenrik Nordstrom2011-02-154-8/+5
|
* Repair unit test suite.Aldo Cortesi2011-02-112-25/+17
|
* Bump versionHenrik Nordstrom2011-02-101-1/+1
|
* Implement a dummy CAHenrik Nordstrom2011-02-107-66/+294
|
* Allow specifying the accepted ciphersuitesHenrik Nordstrom2011-02-105-5/+34
|
* Import cache store control into console controllerHenrik Nordstrom2011-02-105-13/+49
|
* Simple record & playback functionalityHenrik Nordstrom2011-02-109-4/+668
|
* Basic HTTP/1.1 SupportHenrik Nordstrom2011-02-102-60/+175
| | | | | | | | | | | | | | | | | | | Adds support for chunked transfer encoding, and a couple other minor protocol corrections. Improve HTTP support - Support intercepted requests with Host header - Support HEAD requests proper - Support any HTTP method including extensions, not just a couple known ones Support expect: 100-continue and 100 Continue messages Persistent client connections Generalize ServerConnection a bit in preparation for keep-alive support Correct HTTP status codes on errors forwarding the request
* Optimize CONNECT responses, sent in a single packetHenrik Nordstrom2011-02-101-3/+5
|
* Sort header names for a predictable resultHenrik Nordstrom2011-02-101-1/+1
|
* Move try_del to utilsHenrik Nordstrom2011-02-102-15/+15
|
* Automatically update response message when editing response codeHenrik Nordstrom2011-02-101-2/+4
|