diff --git a/lib/core/settings.py b/lib/core/settings.py index 8d4ab5070..ec063373b 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.30" +VERSION = "1.10.11.31" 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 226f19e60..1537f8c6e 100644 --- a/plugins/generic/databases.py +++ b/plugins/generic/databases.py @@ -1234,7 +1234,8 @@ class Databases(object): infoMsg = "fetching stored procedures" logger.info(infoMsg) - rootQuery = queries[Backend.getIdentifiedDbms()].procedures + dbms = Backend.getIdentifiedDbms() + rootQuery = queries[dbms].procedures if dbms in queries and "procedures" in queries[dbms] else {} # Generic-first by design: a DBMS is supported iff it declares a query block in # queries.xml (INFORMATION_SCHEMA.ROUTINES / pg_proc / sys.sql_modules / ALL_SOURCE / RDB$PROCEDURES).