mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-25 19:13:48 +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 += "because of lack of content. please check the "
|
||||||
errMsg += "page request results (and probable errors) by "
|
errMsg += "page request results (and probable errors) by "
|
||||||
errMsg += "using higher verbosity levels"
|
errMsg += "using higher verbosity levels"
|
||||||
raise sqlmapNoneDataException, errMsg
|
logger.error(errMsg)
|
||||||
|
|
||||||
else:
|
else:
|
||||||
warnMsg = "url is not stable, sqlmap will base the page "
|
warnMsg = "url is not stable, sqlmap will base the page "
|
||||||
|
@ -938,7 +938,7 @@ def checkConnection(suppressOutput=False):
|
||||||
|
|
||||||
kb.errorIsNone = False
|
kb.errorIsNone = False
|
||||||
|
|
||||||
if not kb.originalPage:
|
if not kb.originalPage and wasLastRequestHTTPError():
|
||||||
errMsg = "unable to retrieve page content"
|
errMsg = "unable to retrieve page content"
|
||||||
raise sqlmapConnectionException, errMsg
|
raise sqlmapConnectionException, errMsg
|
||||||
elif wasLastRequestDBMSError():
|
elif wasLastRequestDBMSError():
|
||||||
|
|
|
@ -1413,6 +1413,8 @@ def __setKnowledgeBaseAttributes(flushAll=True):
|
||||||
kb.injection = InjectionDict()
|
kb.injection = InjectionDict()
|
||||||
kb.injections = []
|
kb.injections = []
|
||||||
|
|
||||||
|
kb.lastParserStatus = None
|
||||||
|
|
||||||
kb.locks = AttribDict()
|
kb.locks = AttribDict()
|
||||||
kb.locks.cacheLock = threading.Lock()
|
kb.locks.cacheLock = threading.Lock()
|
||||||
kb.locks.logLock = threading.Lock()
|
kb.locks.logLock = threading.Lock()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user