From efe75aa8a3dbdaa4c993cda1ac5adf1bf3d72b91 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Thu, 4 Nov 2010 09:18:32 +0000 Subject: [PATCH] added some debug messages --- lib/controller/checks.py | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/lib/controller/checks.py b/lib/controller/checks.py index 45ecc8a91..2b0b40974 100644 --- a/lib/controller/checks.py +++ b/lib/controller/checks.py @@ -153,8 +153,11 @@ def checkDynamicContent(firstPage, secondPage): This function checks if the provided pages have dynamic content. If they are dynamic, proper markings will be made. """ - + if kb.nullConnection: + debugMsg = "dynamic content checking skipped " + debugMsg += "because NULL connection used" + logger.debug(debugMsg) return infoMsg = "searching for dynamic content" @@ -248,7 +251,13 @@ def checkStability(): if test: conf.string = test - kb.nullConnection = None + + if kb.nullConnection: + debugMsg = "turning off NULL connection " + debugMsg += "support because of string checking" + logger.debug(debugMsg) + + kb.nullConnection = None else: raise sqlmapSilentQuitException @@ -258,7 +267,13 @@ def checkStability(): if test: conf.regex = test - kb.nullConnection = None + + if kb.nullConnection: + debugMsg = "turning off NULL connection " + debugMsg += "support because of regex checking" + logger.debug(debugMsg) + + kb.nullConnection = None else: raise sqlmapSilentQuitException else: