From 59ec291b6cff1dfa83b316401418b6308df93aac Mon Sep 17 00:00:00 2001 From: iroiro123 Date: Thu, 18 Jun 2015 23:53:27 +0900 Subject: HTTP Transparent Proxy --- libmproxy/cmdline.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'libmproxy/cmdline.py') diff --git a/libmproxy/cmdline.py b/libmproxy/cmdline.py index eb24bed7..d0e54dfe 100644 --- a/libmproxy/cmdline.py +++ b/libmproxy/cmdline.py @@ -362,6 +362,11 @@ def common_options(parser): action="store_true", dest="transparent_proxy", default=False, help="Set transparent proxy mode." ) + group.add_argument( + "-H", "--http-transparent", + action="store_true", dest="http_transparent_proxy", default=False, + help="Use the Host header to connect to server." + ) group.add_argument( "-U", "--upstream", action="store", -- cgit v1.2.3 From 378aa783243cf23d84a39d02dde5420beadc188b Mon Sep 17 00:00:00 2001 From: iroiro123 Date: Sat, 20 Jun 2015 21:43:50 +0900 Subject: Spoof mode --- libmproxy/cmdline.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'libmproxy/cmdline.py') diff --git a/libmproxy/cmdline.py b/libmproxy/cmdline.py index d0e54dfe..5111fdd8 100644 --- a/libmproxy/cmdline.py +++ b/libmproxy/cmdline.py @@ -362,11 +362,6 @@ def common_options(parser): action="store_true", dest="transparent_proxy", default=False, help="Set transparent proxy mode." ) - group.add_argument( - "-H", "--http-transparent", - action="store_true", dest="http_transparent_proxy", default=False, - help="Use the Host header to connect to server." - ) group.add_argument( "-U", "--upstream", action="store", @@ -375,6 +370,11 @@ 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 server." + ) group = parser.add_argument_group( "Advanced Proxy Options", -- cgit v1.2.3 From fd903673299c050b7b4137aabf6b9265df3d6233 Mon Sep 17 00:00:00 2001 From: iroiro123 Date: Sun, 21 Jun 2015 00:51:56 +0900 Subject: SSL Spoof mode --- libmproxy/cmdline.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'libmproxy/cmdline.py') 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( -- cgit v1.2.3