prioritized fingerprinted DBMS to error-based and user provided one

This commit is contained in:
Bernardo Damele 2015-02-27 14:19:30 +00:00
parent 2f08c8b666
commit 260643241a

View File

@ -463,12 +463,12 @@ class Backend:
dbms = Backend.getForcedDbms()
elif Backend.getDbms() is not None:
dbms = Backend.getDbms()
elif conf.get("dbms"):
dbms = conf.get("dbms")
elif Backend.getErrorParsedDBMSes():
dbms = unArrayizeValue(Backend.getErrorParsedDBMSes())
elif kb.get("injection") and kb.injection.dbms:
dbms = unArrayizeValue(kb.injection.dbms)
elif Backend.getErrorParsedDBMSes():
dbms = unArrayizeValue(Backend.getErrorParsedDBMSes())
elif conf.get("dbms"):
dbms = conf.get("dbms")
return aliasToDbmsEnum(dbms)