diff --git a/lib/core/settings.py b/lib/core/settings.py index 065d18241..f3b960576 100644 --- a/lib/core/settings.py +++ b/lib/core/settings.py @@ -19,7 +19,7 @@ from lib.core.enums import OS from thirdparty import six # sqlmap version (...) -VERSION = "1.10.11.69" +VERSION = "1.10.11.70" TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable" TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34} VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE) diff --git a/plugins/generic/databases.py b/plugins/generic/databases.py index 3df7f8ab0..75f9577f1 100644 --- a/plugins/generic/databases.py +++ b/plugins/generic/databases.py @@ -1058,7 +1058,7 @@ class Databases(object): query = agent.whereQuery(query) count = inject.getValue(query, expected=EXPECTED.INT, charsetType=CHARSET_TYPE.DIGITS) - if isNumPosStrValue(count): + if isNumPosStrValue(count) or count in (0, "0"): # Note: including empty tables (i.e. 0 entries) if safeSQLIdentificatorNaming(db) not in kb.data.cachedCounts: kb.data.cachedCounts[safeSQLIdentificatorNaming(db)] = {}