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)
This commit is contained in:
Youssef Mohammed 2018-02-26 22:50:41 +02:00 committed by GitHub
parent 93859fdc42
commit 92d9a4b3a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -383,7 +383,7 @@ def errorUse(expression, dump=False):
if threadData.shared.showEta: if threadData.shared.showEta:
threadData.shared.progress = ProgressBar(maxValue=(stopLimit - startLimit)) 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: for field in expressionFieldsList:
if _oneShotErrorUse("SELECT COUNT(%s) FROM %s" % (field, kb.dumpTable)) == '0': if _oneShotErrorUse("SELECT COUNT(%s) FROM %s" % (field, kb.dumpTable)) == '0':
emptyFields.append(field) emptyFields.append(field)