mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-02-03 13:14:13 +03:00
fix for a bug (previously --dbms="mysql 4" was ignored and abruptly terminated while the mechanism was here all along)
This commit is contained in:
parent
1dea609019
commit
707edc7b1a
|
@ -667,11 +667,11 @@ def __setDBMS():
|
||||||
logger.debug(debugMsg)
|
logger.debug(debugMsg)
|
||||||
|
|
||||||
conf.dbms = conf.dbms.lower()
|
conf.dbms = conf.dbms.lower()
|
||||||
firstRegExp = "(%s)" % "|".join([alias for alias in SUPPORTED_DBMS])
|
|
||||||
dbmsRegExp = re.search("%s ([\d\.]+)" % firstRegExp, conf.dbms, re.I)
|
|
||||||
|
|
||||||
if dbmsRegExp:
|
regex = re.search("%s ([\d\.]+)" % ("(%s)" % "|".join([alias for alias in SUPPORTED_DBMS])), conf.dbms, re.I)
|
||||||
Backend.setVersion(str(dbmsRegExp.group(2)))
|
if regex:
|
||||||
|
conf.dbms = regex.group(1)
|
||||||
|
Backend.setVersion(regex.group(2))
|
||||||
|
|
||||||
if conf.dbms not in SUPPORTED_DBMS:
|
if conf.dbms not in SUPPORTED_DBMS:
|
||||||
errMsg = "you provided an unsupported back-end database management "
|
errMsg = "you provided an unsupported back-end database management "
|
||||||
|
|
Loading…
Reference in New Issue
Block a user