mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-04 06:50:14 +00:00
Bug fix (SOCKS4 patch)
This commit is contained in:
parent
2f53014685
commit
557da5dee4
3 changed files with 10 additions and 2 deletions
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"))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue