mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-07-29 09:29:50 +03:00
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:
parent
93859fdc42
commit
92d9a4b3a7
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user