diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2014-10-26 17:13:25 +1300 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2014-10-26 17:13:25 +1300 |
commit | efd6fdb0e24532de757fc90a8d3ae984b7170c51 (patch) | |
tree | a82205c5b22dfbaf3c6fbd50621513b1a8642b1c /libmproxy | |
parent | 35075a31a802dba1b07c65d8be72be2762ff99ee (diff) | |
download | mitmproxy-efd6fdb0e24532de757fc90a8d3ae984b7170c51.tar.gz mitmproxy-efd6fdb0e24532de757fc90a8d3ae984b7170c51.tar.bz2 mitmproxy-efd6fdb0e24532de757fc90a8d3ae984b7170c51.zip |
Start a fuzzing architecture for mitmproxy
Diffstat (limited to 'libmproxy')
-rw-r--r-- | libmproxy/dump.py | 11 | ||||
-rw-r--r-- | libmproxy/proxy/server.py | 2 |
2 files changed, 8 insertions, 5 deletions
diff --git a/libmproxy/dump.py b/libmproxy/dump.py index ccb2b5b5..9fb0f001 100644 --- a/libmproxy/dump.py +++ b/libmproxy/dump.py @@ -1,10 +1,13 @@ from __future__ import absolute_import -import sys, os +import sys +import os import netlib.utils from . import flow, filt, utils from .protocol import http -class DumpError(Exception): pass + +class DumpError(Exception): + pass class Options(object): @@ -37,6 +40,7 @@ class Options(object): "replay_ignore_content", "replay_ignore_params", ] + def __init__(self, **kwargs): for k, v in kwargs.items(): setattr(self, k, v) @@ -71,7 +75,7 @@ class DumpMaster(flow.FlowMaster): self.anticache = options.anticache self.anticomp = options.anticomp self.showhost = options.showhost - self.replay_ignore_params = options.replay_ignore_params + self.replay_ignore_params = options.replay_ignore_params self.replay_ignore_content = options.replay_ignore_content self.refresh_server_playback = options.refresh_server_playback @@ -88,7 +92,6 @@ class DumpMaster(flow.FlowMaster): if options.stickyauth: self.set_stickyauth(options.stickyauth) - if options.wfile: path = os.path.expanduser(options.wfile) try: diff --git a/libmproxy/proxy/server.py b/libmproxy/proxy/server.py index fdf6405a..613662c3 100644 --- a/libmproxy/proxy/server.py +++ b/libmproxy/proxy/server.py @@ -275,4 +275,4 @@ class ConnectionHandler: # make dang sure it doesn't happen. except: # pragma: no cover import traceback - self.log("Error in handle_sni:\r\n" + traceback.format_exc(), "error")
\ No newline at end of file + self.log("Error in handle_sni:\r\n" + traceback.format_exc(), "error") |