mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-06 20:51:31 +00:00
Bug fix (SOCKS4 patch)
This commit is contained in:
6
thirdparty/socks/socks.py
vendored
6
thirdparty/socks/socks.py
vendored
@@ -109,7 +109,11 @@ def wrapmodule(module):
|
||||
"""
|
||||
if _defaultproxy != None:
|
||||
module.socket.socket = socksocket
|
||||
module.socket.create_connection = create_connection
|
||||
if _defaultproxy[0] == PROXY_TYPE_SOCKS4:
|
||||
# Note: unable to prevent DNS leakage in SOCKS4 (Reference: https://security.stackexchange.com/a/171280)
|
||||
pass
|
||||
else:
|
||||
module.socket.create_connection = create_connection
|
||||
else:
|
||||
raise GeneralProxyError((4, "no proxy specified"))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user