mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 09:36:35 +03:00
minor update for empty normal responses (like AJAX requests)
This commit is contained in:
parent
e849b71027
commit
2ad267132a
|
@ -735,7 +735,7 @@ def checkStability():
|
|||
errMsg += "because of lack of content. please check the "
|
||||
errMsg += "page request results (and probable errors) by "
|
||||
errMsg += "using higher verbosity levels"
|
||||
raise sqlmapNoneDataException, errMsg
|
||||
logger.error(errMsg)
|
||||
|
||||
else:
|
||||
warnMsg = "url is not stable, sqlmap will base the page "
|
||||
|
@ -938,7 +938,7 @@ def checkConnection(suppressOutput=False):
|
|||
|
||||
kb.errorIsNone = False
|
||||
|
||||
if not kb.originalPage:
|
||||
if not kb.originalPage and wasLastRequestHTTPError():
|
||||
errMsg = "unable to retrieve page content"
|
||||
raise sqlmapConnectionException, errMsg
|
||||
elif wasLastRequestDBMSError():
|
||||
|
|
|
@ -1413,6 +1413,8 @@ def __setKnowledgeBaseAttributes(flushAll=True):
|
|||
kb.injection = InjectionDict()
|
||||
kb.injections = []
|
||||
|
||||
kb.lastParserStatus = None
|
||||
|
||||
kb.locks = AttribDict()
|
||||
kb.locks.cacheLock = threading.Lock()
|
||||
kb.locks.logLock = threading.Lock()
|
||||
|
|
Loading…
Reference in New Issue
Block a user