aboutsummaryrefslogtreecommitdiffstats
path: root/libmproxy/flow.py
Commit message (Collapse)AuthorAgeFilesLines
...
* Add API for duplicating flows.Aldo Cortesi2012-02-181-6/+23
|
* Firm up reverse proxy specification.Aldo Cortesi2012-02-181-9/+2
| | | | | | - Extract proxy spec parsing and unparsing functions. - Add a status indicator in mitmproxy. - Add the "R" keybinding for changing the reverse proxy from within mitmproxy.
* Refactor reverse proxyingAldo Cortesi2012-02-181-1/+1
| | | | | | | - Retain the specification from the Host header as a Request's description. - Expand upstream proxy specifications to include the scheme. We now say https://hostname:port - Move the "R" revert keybinding to "v" to make room for a reverse proxy binding that matches the command-line flag.
* Fix a problem in deserialization of flows with errors.Aldo Cortesi2012-02-181-3/+3
|
* Make filter matching act more sensibly.Aldo Cortesi2012-02-101-6/+8
|
* Add filter for detecting flows with errors.Aldo Cortesi2012-02-101-6/+2
| | | | Also, remove dependency on weird _is_response method.
* Expand test coverage.Aldo Cortesi2012-02-101-12/+6
|
* Enable editing of urlencoded form data with KVEditor.Aldo Cortesi2012-02-101-2/+2
|
* Methods for getting and setting form urlencoded data on Request.Aldo Cortesi2012-02-101-0/+23
|
* Add get_query and set_query methods to Request.Aldo Cortesi2012-02-091-1/+20
|
* Very basic KV editor mockup.Aldo Cortesi2012-02-061-4/+1
|
* Simple fix for a unicode error when editing a request URL.Aldo Cortesi2011-10-261-10/+10
|
* Change size limit cmdline flag to -Z, enable size limits for replay.Aldo Cortesi2011-09-091-1/+5
|
* Add HTTP body size limit specification to command-line tools.Aldo Cortesi2011-09-091-1/+1
|
* Fix a rare crash in sticky cookies.Aldo Cortesi2011-08-261-1/+2
|
* Fix a problem with sticky cookie domain matching.Aldo Cortesi2011-08-261-5/+13
| | | | | Just like everything else cookie-related in the standard library, cookielib.domain_match is fucked up.
* Add attribution and license for tnetstring.pyAldo Cortesi2011-08-191-4/+4
|
* Move to typed netstrings for serialization.Aldo Cortesi2011-08-191-13/+15
| | | | This change is backwards incompatible with the old serialization format!
* Replaced unnecessary lists with generatorsAndrás Veres-Szentkirályi2011-08-181-3/+3
|
* Add a "done" event for scripts.Aldo Cortesi2011-08-051-11/+22
| | | | Called exactly once after all other events.
* Rip out autodecodeAldo Cortesi2011-08-041-1/+0
| | | | | | | | We simplify things as follows: - If we're in "pretty" view mode, we autodecode. - Otherwise, we display raw data, and the user can manually encode/decode with z shortcut.
* Code cleanliness - appease pychecker.Aldo Cortesi2011-08-041-1/+1
|
* Move script.Context to flow.ScriptContextAldo Cortesi2011-08-041-2/+16
|
* Clean pydoc profile for flow.FlowAldo Cortesi2011-08-041-12/+44
|
* Clean pydoc profile for flow.Response, flow.ErrorAldo Cortesi2011-08-041-9/+65
|
* Request class now has a clean pydoc profile.Aldo Cortesi2011-08-041-16/+52
|
* Further interface cleaning.Aldo Cortesi2011-08-031-28/+18
|
* Clean up interfaces by making some methods pseudo-private.Aldo Cortesi2011-08-031-48/+51
|
* Move all HTTP objects to flow.pyAldo Cortesi2011-08-031-23/+545
| | | | That's Request, Response, ClientConnect, ClientDisconnect, Error, and Headers.
* Enable "|" command to run a oneshot script on a single flow.Aldo Cortesi2011-08-031-6/+16
|
* Add script hooks, enable new engine for mitmdump.Aldo Cortesi2011-08-031-51/+33
|
* Move the event notification mechanism into flow.pyAldo Cortesi2011-08-031-0/+16
|
* Rip out old script interface, start replacing with new stubs.Aldo Cortesi2011-08-031-10/+3
| | | | Scripts are broken for now.
* Tweak encoding behaviourAldo Cortesi2011-08-021-2/+0
| | | | | | | | | - Don't fail to identity encoding when an unknown encoding is specified. - Don't constrain encodings. I want to try to modify traffic as little as possible by default. - When decoding, delete content-encoding header rather than set it to "identity" - Refuse to decode/encode when there is an existing but unknown content-encoding header.
* General cleanup.Aldo Cortesi2011-08-021-6/+7
| | | | | 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-13/+0
|
* Improve performance of loading flows from a file hugely.Aldo Cortesi2011-08-011-3/+0
| | | | 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-011-27/+47
| | | | | The naive approach we used before recalculated the view on every access, and consequently had serious performance problems.
* Changes replace logic to function in both Python 2.6.x and 2.7.xStephen Altamirano2011-07-261-5/+5
| | | | 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
* Fix crash when sticky cookies are read from file.Aldo Cortesi2011-07-241-1/+1
| | | | Cookielib expects strings, not unicode.
* Add utility functions to search and replace strings in flowsAldo Cortesi2011-07-221-0/+12
| | | | | | | | | | 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
* Removes should_autodecode attribute from Response. Adds commandline option ↵Stephen Altamirano2011-07-211-0/+1
| | | | 'd' to toggle autodecode, adds togglable option 'd' to do the same
* Adds support for content encoding, namely gip and deflatealts2011-07-161-3/+6
|
* Introduce an anti-compression command-line argument.Aldo Cortesi2011-07-151-0/+3
| | | | | This is on by default, which means we avoid compressed content unless the -z flag is specified.
* Rewrite Headers object to preserve order and case.Aldo Cortesi2011-07-141-3/+4
|
* Don't redraw the screen more often than necessary.Aldo Cortesi2011-06-271-1/+1
|
* Don't backup flows before replay.Aldo Cortesi2011-06-231-1/+0
| | | | This lets us revert to the original request, even after replaying an edit.
* Add -r option to mitmdump and mitmproxy.Aldo Cortesi2011-05-151-5/+3
| | | | | | This option reads a set of flows from a file. I've also regularized the mitmdump and mitmproxy command-line signatures by removing mitmproxy's old way of specifying flow loads through naked arguments.
* Add a new flow loading mechanism.Aldo Cortesi2011-05-151-4/+21
| | | | | We now simulate the normal connection flow when we load flows. That means that we can run scripts, hooks, sticky cookies, etc.
* Add a stickyauth option.Aldo Cortesi2011-03-201-0/+32
| | | | | | | 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.