aboutsummaryrefslogtreecommitdiffstats
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
...
* Further interface cleaning.Aldo Cortesi2011-08-032-6/+6
|
* Clean up interfaces by making some methods pseudo-private.Aldo Cortesi2011-08-031-23/+23
|
* Move all HTTP objects to flow.pyAldo Cortesi2011-08-037-375/+375
| | | | That's Request, Response, ClientConnect, ClientDisconnect, Error, and Headers.
* Enable "|" command to run a oneshot script on a single flow.Aldo Cortesi2011-08-031-8/+0
|
* Add script hooks, enable new engine for mitmdump.Aldo Cortesi2011-08-035-31/+68
|
* Rip out old script interface, start replacing with new stubs.Aldo Cortesi2011-08-0310-53/+55
| | | | Scripts are broken for now.
* Start stubbing out a much more powerful script architecture.Aldo Cortesi2011-08-033-0/+47
|
* Refresh current connection when toggling autodecode.Aldo Cortesi2011-08-022-6/+5
| | | | Also fix the unit tests I forgot to commit...
* Unit test++Aldo Cortesi2011-08-023-21/+69
|
* General cleanup.Aldo Cortesi2011-08-023-25/+3
| | | | | Cut out unused variables and code, generally shut up pychecker as much as is reasonable.
* We no longer need to track clientconnections.Aldo Cortesi2011-08-021-7/+0
|
* Improve performance of loading flows from a file hugely.Aldo Cortesi2011-08-011-4/+4
| | | | Fell into the "expensive __eq__ method" trap. Oh, Python, you little scamp.
* Refactor the way we calculate views of the flow list.Aldo Cortesi2011-08-012-8/+8
| | | | | The naive approach we used before recalculated the view on every access, and consequently had serious performance problems.
* Add decoding/encoding for requests.Aldo Cortesi2011-08-011-0/+25
|
* Merge remote-tracking branch 'alts/encoding'Aldo Cortesi2011-07-281-0/+25
|\
| * Adds test method for Response encoding and decodingStephen Altamirano2011-07-261-0/+25
| |
* | Changes replace logic to function in both Python 2.6.x and 2.7.xStephen Altamirano2011-07-261-2/+2
|/ | | | Tests now only assume Python 2.6.x rather than requiring 2.7.x. This does not preclude the use of flags as a kwarg in replace
* Add an eventlog option to mitmdumpAldo Cortesi2011-07-231-2/+3
| | | | | This shows client connections, disconnections and requests (before a complete flow is assembled). We need to add an analogous display to mitmproxy.
* Also replace strings path for requests.Aldo Cortesi2011-07-221-1/+3
|
* Add utility functions to search and replace strings in flowsAldo Cortesi2011-07-223-1/+46
| | | | | | | | | | This is a common task in pentesting scenarios. This commit adds the following functions: utils.Headers.replace proxy.Request.replace proxy.Response.replace flow.Flow.replace
* Adds encode counterparts to decode functionsStephen Altamirano2011-07-171-16/+14
|
* Refine encoding supportAldo Cortesi2011-07-171-0/+2
| | | | | - Push decoding down into the LRU cache - Cope gracefully with corrupted data and incorrect encoding headers
* Adds support for content encoding, namely gip and deflatealts2011-07-162-1/+32
|
* Add a pretty-printing mode for urlencoded form data.Aldo Cortesi2011-07-151-0/+7
|
* Introduce an anti-compression command-line argument.Aldo Cortesi2011-07-151-0/+1
| | | | | This is on by default, which means we avoid compressed content unless the -z flag is specified.
* Refine path completion somewhat.Aldo Cortesi2011-07-141-1/+2
| | | | Make it match the behaviour of vim and mutt more closely
* Rewrite Headers object to preserve order and case.Aldo Cortesi2011-07-142-94/+24
|
* Cast some data read from dump files to str, to prevent unicode promotion.Aldo Cortesi2011-07-011-1/+5
| | | | | This fixes a bug that caused a traceback when de-serialized requests were replayed. Also adds unit tests for the problem.
* JSON pretty-printing.Aldo Cortesi2011-06-301-1/+9
| | | | | Also rename the display modes ("pretty" instead of "indent"), and expand the built-in documentation.
* Try not to hang when user views large request & response bodiesAldo Cortesi2011-06-271-0/+8
| | | | | | | | | | Two different strategies here: - Use a simple heuristic to detect if we're looking at XML data when indent mode is used. On non-XML data we can hang even on small documents. - Only view partial data for large bodies. At the moment the cutoff is 100k. I might finetune this later.
* Add a hideous kludge to fix not-yet-valid certificates.Aldo Cortesi2011-06-111-0/+2
| | | | | | | | | | | | - The OpenSSL x509 has no way to explicitly set the notBefore value on certificates. - If two systems have the same configured time, it's possible to return a certificate before the validity start time has arrived. - We "solve" this by waiting for one second when a certificate is first generated before returning the cert. The alternative is to rewrite pretty much all of our certificate generation, a thought too horrible to contemplate.
* Add a new flow loading mechanism.Aldo Cortesi2011-05-152-0/+28
| | | | | We now simulate the normal connection flow when we load flows. That means that we can run scripts, hooks, sticky cookies, etc.
* unit test coverage ++Aldo Cortesi2011-03-204-0/+27
|
* Add a stickyauth option.Aldo Cortesi2011-03-201-0/+40
| | | | | | | This allows us to replay an HTTP Authorization header, in the same way as we replay cookies using stickycookies. This lets us conveniently get at HTTP Basic Auth protected resources through the proxy, but is not enough to do the same for HTTP Digest auth. We'll put that on the todo list.
* Reverse order of flows in mitmproxy.Aldo Cortesi2011-03-201-6/+6
| | | | It matches user expectations much better to have new flows appended to the bottom.
* Revamp key generation.Aldo Cortesi2011-03-182-1/+7
| | | | | | | | | | | We now create three different files in the .mitmproxy directory when a dummy CA is made: mitmproxy-ca.pem - the CA, including private key mitmproxy-ca-cert.p12 - A pkcs12 version of the certificate, for distribution to Windows. mitmproxy-ca-cert.pem - A PEM version of the certificate, for distribution to everyone else.
* Interrupt interception when deleting an intercepting flow.Aldo Cortesi2011-03-151-3/+0
| | | | Prompting the user for this is annoying.
* Fix hang on shutdown.Aldo Cortesi2011-03-152-2/+3
|
* Do pre-processing of requests before replay.Aldo Cortesi2011-03-151-0/+1
| | | | | This enables scripts, anticache, server playback and sticky cookies for request replays.
* Improve responsiveness of request and response viewing.Aldo Cortesi2011-03-151-0/+31
| | | | | | | | - Computing the view of a large body is expensive, so we introduce an LRU cache to hold the latest 20 results. - Use ListView more correctly, passing it individual urwid.Text snippets, rather than a single large one. This hugely improves render time.
* Fix unit tests on OSX when a system proxy is configured.Aldo Cortesi2011-03-141-4/+7
|
* Fix flow formatting unit tests.Aldo Cortesi2011-03-141-4/+2
|
* Fix a traceback sometimes triggered viewing a connection with no response.Aldo Cortesi2011-03-131-1/+2
|
* Add client plaback to mitmproxy.Aldo Cortesi2011-03-131-2/+4
|
* flow.py 100% test coverageAldo Cortesi2011-03-131-1/+11
|
* mitmproxy prompted input now display previously set value.Aldo Cortesi2011-03-132-5/+5
| | | | | E.g. if you set a limit, then re-enter the limit prompt, you start with the currently set value.
* Unit tests for proxy.read_chunkedAldo Cortesi2011-03-121-0/+17
|
* Unit tests for cmdline.pyAldo Cortesi2011-03-121-0/+29
|
* console.py 100% test coverageAldo Cortesi2011-03-121-1/+16
|
* netstring.py 100% unit test coverage.Aldo Cortesi2011-03-121-0/+10
|