diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2015-06-23 09:40:25 +1200 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2015-06-23 09:40:25 +1200 |
commit | e2069d52a81a2aef99dcd2da4fbc61e926b024a0 (patch) | |
tree | 92986b2fda60ae8a24932d892da8469932d654a8 /libmproxy/cmdline.py | |
parent | 159543dd2b2f0f38ba4f86109d58b7a2e53d6566 (diff) | |
parent | fbb23b5c9fae6e402d84ddae3c3b8c218def366c (diff) | |
download | mitmproxy-e2069d52a81a2aef99dcd2da4fbc61e926b024a0.tar.gz mitmproxy-e2069d52a81a2aef99dcd2da4fbc61e926b024a0.tar.bz2 mitmproxy-e2069d52a81a2aef99dcd2da4fbc61e926b024a0.zip |
Merge pull request #638 from iroiro123/http-transparent
HTTP Transparent Proxy
Diffstat (limited to 'libmproxy/cmdline.py')
-rw-r--r-- | libmproxy/cmdline.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/libmproxy/cmdline.py b/libmproxy/cmdline.py index eb24bed7..08639f6d 100644 --- a/libmproxy/cmdline.py +++ b/libmproxy/cmdline.py @@ -370,6 +370,21 @@ def common_options(parser): default=None, help="Forward all requests to upstream proxy server: http://host[:port]" ) + group.add_argument( + "--spoof", + action="store_true", dest="spoof_mode", default=False, + help="Use Host header to connect to HTTP servers." + ) + group.add_argument( + "--ssl-spoof", + action="store_true", dest="ssl_spoof_mode", default=False, + help="Use TLS SNI to connect to HTTPS servers." + ) + group.add_argument( + "--spoofed-port", + action="store", dest="spoofed_ssl_port", type=int, default=443, + help="Port number of upstream HTTPS servers in SSL spoof mode." + ) group = parser.add_argument_group( "Advanced Proxy Options", |