mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-02-03 05:04:11 +03:00
minor update
This commit is contained in:
parent
408d12dc41
commit
0f5d48ff20
|
@ -34,7 +34,7 @@ for tunneling connections through SOCKS proxies.
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Minor modifications made by Miroslav Stampar (http://www.sqlmap.org/)
|
Minor modifications made by Miroslav Stampar (http://www.sqlmap.org/)
|
||||||
for patching DNS-leakage occuring in create_connection()
|
for patching DNS-leakage occuring in socket.create_connection()
|
||||||
|
|
||||||
Minor modifications made by Christopher Gilbert (http://motomastyle.com/)
|
Minor modifications made by Christopher Gilbert (http://motomastyle.com/)
|
||||||
for use in PyLoris (http://pyloris.sourceforge.net/)
|
for use in PyLoris (http://pyloris.sourceforge.net/)
|
||||||
|
@ -392,9 +392,7 @@ class socksocket(socket.socket):
|
||||||
|
|
||||||
def create_connection(address, timeout=socket._GLOBAL_DEFAULT_TIMEOUT,
|
def create_connection(address, timeout=socket._GLOBAL_DEFAULT_TIMEOUT,
|
||||||
source_address=None):
|
source_address=None):
|
||||||
"""
|
# Patched for a DNS-leakage
|
||||||
Patched for DNS-leakage
|
|
||||||
"""
|
|
||||||
host, port = address
|
host, port = address
|
||||||
sock = None
|
sock = None
|
||||||
try:
|
try:
|
||||||
|
|
|
@ -975,5 +975,7 @@ def checkConnection(suppressOutput=False):
|
||||||
msg = "it is not recommended to continue in this kind of cases. Do you want to quit and make sure that everything is set up properly? [Y/n] "
|
msg = "it is not recommended to continue in this kind of cases. Do you want to quit and make sure that everything is set up properly? [Y/n] "
|
||||||
if readInput(msg, default="Y") not in ("n", "N"):
|
if readInput(msg, default="Y") not in ("n", "N"):
|
||||||
raise sqlmapSilentQuitException
|
raise sqlmapSilentQuitException
|
||||||
|
else:
|
||||||
|
kb.ignoreNotFound = True
|
||||||
|
|
||||||
return True
|
return True
|
||||||
|
|
|
@ -1420,6 +1420,7 @@ def __setKnowledgeBaseAttributes(flushAll=True):
|
||||||
kb.htmlFp = []
|
kb.htmlFp = []
|
||||||
kb.httpErrorCodes = {}
|
kb.httpErrorCodes = {}
|
||||||
kb.inferenceMode = False
|
kb.inferenceMode = False
|
||||||
|
kb.ignoreNotFound = False
|
||||||
kb.ignoreTimeout = False
|
kb.ignoreTimeout = False
|
||||||
kb.injection = InjectionDict()
|
kb.injection = InjectionDict()
|
||||||
kb.injections = []
|
kb.injections = []
|
||||||
|
|
|
@ -177,6 +177,8 @@ class Connect:
|
||||||
responseHeaders = None
|
responseHeaders = None
|
||||||
logHeaders = u""
|
logHeaders = u""
|
||||||
|
|
||||||
|
raise404 = raise404 and not kb.ignoreNotFound
|
||||||
|
|
||||||
# support for non-latin (e.g. cyrillic) URLs as urllib/urllib2 doesn't
|
# support for non-latin (e.g. cyrillic) URLs as urllib/urllib2 doesn't
|
||||||
# support those by default
|
# support those by default
|
||||||
url = asciifyUrl(url)
|
url = asciifyUrl(url)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user