Skip to content

Commit d9d0865

Browse files
committed
Another patch for an Issue sqlmapproject#1874
1 parent e3f54bc commit d9d0865

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from lib.core.revision import getRevisionNumber
2020

2121
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
22-
VERSION = "1.0.5.30"
22+
VERSION = "1.0.5.31"
2323
REVISION = getRevisionNumber()
2424
STABLE = VERSION.count('.') <= 2
2525
VERSION_STRING = "sqlmap/%s#%s" % (VERSION, "stable" if STABLE else "dev")

plugins/generic/entries.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,8 +294,11 @@ def dumpTable(self, foundData=None):
294294
indexRange = getLimitRange(count, plusOne=plusOne)
295295

296296
if len(colList) < len(indexRange) > CHECK_ZERO_COLUMNS_THRESHOLD:
297+
debugMsg = "checking for empty columns"
298+
logger.debug(infoMsg)
299+
297300
for column in colList:
298-
if inject.getValue("SELECT COUNT(%s) FROM %s" % (column, kb.dumpTable), union=False, error=False) == '0':
301+
if not inject.checkBooleanExpression("(SELECT COUNT(%s) FROM %s)>0" % (column, kb.dumpTable)):
299302
emptyColumns.append(column)
300303
debugMsg = "column '%s' of table '%s' will not be " % (column, kb.dumpTable)
301304
debugMsg += "dumped as it appears to be empty"

0 commit comments

Comments
 (0)