mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-25 19:13:48 +03:00
fix for "Problem with --dbms set" reported by David Guimaraes
This commit is contained in:
parent
0a363d3f2b
commit
e29e8f82f9
|
@ -494,13 +494,8 @@ def __setDBMS():
|
||||||
logger.debug(debugMsg)
|
logger.debug(debugMsg)
|
||||||
|
|
||||||
conf.dbms = conf.dbms.lower()
|
conf.dbms = conf.dbms.lower()
|
||||||
firstRegExp = "(%s|%s|%s|%s)" % ("|".join([alias for alias in MSSQL_ALIASES]),
|
aliases = MSSQL_ALIASES + MYSQL_ALIASES + PGSQL_ALIASES + ORACLE_ALIASES + SQLITE_ALIASES + ACCESS_ALIASES + FIREBIRD_ALIASES
|
||||||
"|".join([alias for alias in MYSQL_ALIASES]),
|
firstRegExp = "(%s)" % "|".join([alias for alias in aliases])
|
||||||
"|".join([alias for alias in PGSQL_ALIASES]),
|
|
||||||
"|".join([alias for alias in ORACLE_ALIASES]),
|
|
||||||
"|".join([alias for alias in SQLITE_ALIASES]),
|
|
||||||
"|".join([alias for alias in ACCESS_ALIASES]),
|
|
||||||
"|".join([alias for alias in FIREBIRD_ALIASES]))
|
|
||||||
dbmsRegExp = re.search("%s ([\d\.]+)" % firstRegExp, conf.dbms)
|
dbmsRegExp = re.search("%s ([\d\.]+)" % firstRegExp, conf.dbms)
|
||||||
|
|
||||||
if dbmsRegExp:
|
if dbmsRegExp:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user