diff options
author | iroiro123 <user1@cygwin> | 2015-06-21 00:51:56 +0900 |
---|---|---|
committer | iroiro123 <user1@cygwin> | 2015-06-21 00:51:56 +0900 |
commit | fd903673299c050b7b4137aabf6b9265df3d6233 (patch) | |
tree | 8fed9804822066a6251fd6f1e3b1d9e4bf2c81f6 /libmproxy/cmdline.py | |
parent | 378aa783243cf23d84a39d02dde5420beadc188b (diff) | |
download | mitmproxy-fd903673299c050b7b4137aabf6b9265df3d6233.tar.gz mitmproxy-fd903673299c050b7b4137aabf6b9265df3d6233.tar.bz2 mitmproxy-fd903673299c050b7b4137aabf6b9265df3d6233.zip |
SSL Spoof mode
Diffstat (limited to 'libmproxy/cmdline.py')
-rw-r--r-- | libmproxy/cmdline.py | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/libmproxy/cmdline.py b/libmproxy/cmdline.py index 5111fdd8..08639f6d 100644 --- a/libmproxy/cmdline.py +++ b/libmproxy/cmdline.py @@ -373,7 +373,17 @@ def common_options(parser): group.add_argument( "--spoof", action="store_true", dest="spoof_mode", default=False, - help="Use Host header to connect to HTTP server." + 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( |