From 942cbafba69204169d72bd820dc59687f761acdd Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Sat, 1 Jan 2011 20:19:55 +0000 Subject: [PATCH] minor update --- lib/controller/checks.py | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/lib/controller/checks.py b/lib/controller/checks.py index 6e090e3e2..461dc010d 100644 --- a/lib/controller/checks.py +++ b/lib/controller/checks.py @@ -731,7 +731,18 @@ def checkConnection(suppressOutput=False): try: page, _ = Request.queryPage(content=True) 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: errMsg = getUnicode(errMsg) raise sqlmapConnectionException, errMsg