Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit efe75aa

Browse files
committed
added some debug messages
1 parent d5fcc9d commit efe75aa

1 file changed

Lines changed: 18 additions & 3 deletions

File tree

lib/controller/checks.py

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,11 @@ def checkDynamicContent(firstPage, secondPage):
153153
This function checks if the provided pages have dynamic content. If they
154154
are dynamic, proper markings will be made.
155155
"""
156-
156+
157157
if kb.nullConnection:
158+
debugMsg = "dynamic content checking skipped "
159+
debugMsg += "because NULL connection used"
160+
logger.debug(debugMsg)
158161
return
159162

160163
infoMsg = "searching for dynamic content"
@@ -248,7 +251,13 @@ def checkStability():
248251

249252
if test:
250253
conf.string = test
251-
kb.nullConnection = None
254+
255+
if kb.nullConnection:
256+
debugMsg = "turning off NULL connection "
257+
debugMsg += "support because of string checking"
258+
logger.debug(debugMsg)
259+
260+
kb.nullConnection = None
252261
else:
253262
raise sqlmapSilentQuitException
254263

@@ -258,7 +267,13 @@ def checkStability():
258267

259268
if test:
260269
conf.regex = test
261-
kb.nullConnection = None
270+
271+
if kb.nullConnection:
272+
debugMsg = "turning off NULL connection "
273+
debugMsg += "support because of regex checking"
274+
logger.debug(debugMsg)
275+
276+
kb.nullConnection = None
262277
else:
263278
raise sqlmapSilentQuitException
264279
else:

0 commit comments

Comments
 (0)