diff --git a/data/xml/queries.xml b/data/xml/queries.xml index c5269a52e..0585845bc 100644 --- a/data/xml/queries.xml +++ b/data/xml/queries.xml @@ -314,8 +314,8 @@ - - + + diff --git a/lib/core/settings.py b/lib/core/settings.py index fb68fcac1..9cd7d6a84 100644 --- a/lib/core/settings.py +++ b/lib/core/settings.py @@ -20,7 +20,7 @@ from lib.core.enums import OS from thirdparty import six # sqlmap version (...) -VERSION = "1.10.7.100" +VERSION = "1.10.7.101" 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 b648714bd..264ee5d1a 100644 --- a/plugins/generic/databases.py +++ b/plugins/generic/databases.py @@ -301,7 +301,7 @@ class Databases(object): if condition: if not Backend.isDbms(DBMS.SQLITE): - query += " WHERE %s" % condition + query += " %s %s" % ("AND" if re.search(r"(?i)\bWHERE\b", query) else "WHERE", condition) if conf.excludeSysDbs: infoMsg = "skipping system database%s '%s'" % ("s" if len(self.excludeDbsList) > 1 else "", ", ".join(unsafeSQLIdentificatorNaming(db) for db in self.excludeDbsList))