mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-29 13:03:50 +03:00
minor update
This commit is contained in:
parent
26b06bfcfb
commit
942cbafba6
|
@ -731,7 +731,18 @@ def checkConnection(suppressOutput=False):
|
||||||
try:
|
try:
|
||||||
page, _ = Request.queryPage(content=True)
|
page, _ = Request.queryPage(content=True)
|
||||||
kb.originalPage = kb.pageTemplate = page
|
kb.originalPage = kb.pageTemplate = page
|
||||||
kb.errorIsNone = not wasLastRequestDBMSError() and not wasLastRequestHTTPError()
|
|
||||||
|
kb.errorIsNone = False
|
||||||
|
if wasLastRequestDBMSError():
|
||||||
|
warnMsg = "there is an (DBMS) error found in the content of provided target url"
|
||||||
|
warnMsg += " which could interfere with the results of the tests"
|
||||||
|
logger.warn(warnMsg)
|
||||||
|
elif wasLastRequestHTTPError():
|
||||||
|
warnMsg = "there is an (HTTP) error found in the content of provided target url"
|
||||||
|
warnMsg += " which could interfere with the results of the tests"
|
||||||
|
logger.warn(warnMsg)
|
||||||
|
else:
|
||||||
|
kb.errorIsNone = True
|
||||||
except sqlmapConnectionException, errMsg:
|
except sqlmapConnectionException, errMsg:
|
||||||
errMsg = getUnicode(errMsg)
|
errMsg = getUnicode(errMsg)
|
||||||
raise sqlmapConnectionException, errMsg
|
raise sqlmapConnectionException, errMsg
|
||||||
|
|
Loading…
Reference in New Issue
Block a user