minor update for empty normal responses (like AJAX requests)

This commit is contained in:
Miroslav Stampar 2011-08-05 10:55:21 +00:00
parent e849b71027
commit 2ad267132a
2 changed files with 4 additions and 2 deletions

View File

@ -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():

View File

@ -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()