mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-28 02:19:05 +00:00
minor update
This commit is contained in:
@@ -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] "
|
||||
if readInput(msg, default="Y") not in ("n", "N"):
|
||||
raise sqlmapSilentQuitException
|
||||
else:
|
||||
kb.ignoreNotFound = True
|
||||
|
||||
return True
|
||||
|
||||
@@ -1420,6 +1420,7 @@ def __setKnowledgeBaseAttributes(flushAll=True):
|
||||
kb.htmlFp = []
|
||||
kb.httpErrorCodes = {}
|
||||
kb.inferenceMode = False
|
||||
kb.ignoreNotFound = False
|
||||
kb.ignoreTimeout = False
|
||||
kb.injection = InjectionDict()
|
||||
kb.injections = []
|
||||
|
||||
@@ -177,6 +177,8 @@ class Connect:
|
||||
responseHeaders = None
|
||||
logHeaders = u""
|
||||
|
||||
raise404 = raise404 and not kb.ignoreNotFound
|
||||
|
||||
# support for non-latin (e.g. cyrillic) URLs as urllib/urllib2 doesn't
|
||||
# support those by default
|
||||
url = asciifyUrl(url)
|
||||
|
||||
Reference in New Issue
Block a user