From 92d9a4b3a76f2db83acb4532d154d7f39a011dfc Mon Sep 17 00:00:00 2001 From: Youssef Mohammed Date: Mon, 26 Feb 2018 22:50:41 +0200 Subject: [PATCH] Commit to make CLI option to disable counting I was pentesting , when i found lots of null entries in a table examining it showed that sqlmap ignores when count returns zero (don't know why) however commenting out the code retrieved data so going to add this here as command line option (i was wondered that there were no such option) --- lib/techniques/error/use.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/techniques/error/use.py b/lib/techniques/error/use.py index 769e0991a..8708f646a 100644 --- a/lib/techniques/error/use.py +++ b/lib/techniques/error/use.py @@ -383,7 +383,7 @@ def errorUse(expression, dump=False): if threadData.shared.showEta: threadData.shared.progress = ProgressBar(maxValue=(stopLimit - startLimit)) - if kb.dumpTable and (len(expressionFieldsList) < (stopLimit - startLimit) > CHECK_ZERO_COLUMNS_THRESHOLD): + if kb.dumpTable and (kb.count) and (len(expressionFieldsList) < (stopLimit - startLimit) > CHECK_ZERO_COLUMNS_THRESHOLD): for field in expressionFieldsList: if _oneShotErrorUse("SELECT COUNT(%s) FROM %s" % (field, kb.dumpTable)) == '0': emptyFields.append(field)