mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-11-13 11:25:27 +00:00
Fix for --procs crash on DBMSes without stored procedures support
This commit is contained in:
parent
fec03cf662
commit
04e1162d5a
2 changed files with 3 additions and 2 deletions
|
|
@ -19,7 +19,7 @@ from lib.core.enums import OS
|
|||
from thirdparty import six
|
||||
|
||||
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
|
||||
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)
|
||||
|
|
|
|||
|
|
@ -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 <procedures> query block in
|
||||
# queries.xml (INFORMATION_SCHEMA.ROUTINES / pg_proc / sys.sql_modules / ALL_SOURCE / RDB$PROCEDURES).
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue