mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-29 04:53:48 +03:00
minor fix for a bug reported by yonnym@googlemail.com
This commit is contained in:
parent
430fd5cd63
commit
10b723f196
|
@ -572,7 +572,13 @@ def checkDynamicContent(firstPage, secondPage):
|
||||||
debugMsg += "because NULL connection used"
|
debugMsg += "because NULL connection used"
|
||||||
logger.debug(debugMsg)
|
logger.debug(debugMsg)
|
||||||
return
|
return
|
||||||
|
|
||||||
|
if any(page is None for page in (firstPage, secondPage)):
|
||||||
|
warnMsg = "can't check dynamic content "
|
||||||
|
warnMsg += "because of lack of page content"
|
||||||
|
logger.critical(warnMsg)
|
||||||
|
return
|
||||||
|
|
||||||
seqMatcher = getCurrentThreadData().seqMatcher
|
seqMatcher = getCurrentThreadData().seqMatcher
|
||||||
seqMatcher.set_seq1(firstPage)
|
seqMatcher.set_seq1(firstPage)
|
||||||
seqMatcher.set_seq2(secondPage)
|
seqMatcher.set_seq2(secondPage)
|
||||||
|
@ -779,7 +785,10 @@ def checkConnection(suppressOutput=False):
|
||||||
|
|
||||||
kb.errorIsNone = False
|
kb.errorIsNone = False
|
||||||
|
|
||||||
if wasLastRequestDBMSError():
|
if not kb.originalPage:
|
||||||
|
errMsg = "unable to retrieve page content"
|
||||||
|
raise sqlmapConnectionException, errMsg
|
||||||
|
elif wasLastRequestDBMSError():
|
||||||
warnMsg = "there is a DBMS error found in the HTTP response body"
|
warnMsg = "there is a DBMS error found in the HTTP response body"
|
||||||
warnMsg += "which could interfere with the results of the tests"
|
warnMsg += "which could interfere with the results of the tests"
|
||||||
logger.warn(warnMsg)
|
logger.warn(warnMsg)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user