mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-02-03 05:04:11 +03:00
Dealing with rare cases when getIdentifiedDbms is needed prior to DBMS isfingerprinted and there are multiples of dbmses inside details
This commit is contained in:
parent
c1b8226329
commit
bcdba7b7bb
|
@ -491,8 +491,9 @@ def checkSqlInjection(place, parameter, value):
|
|||
if hasattr(test, "details"):
|
||||
for dKey, dValue in test.details.items():
|
||||
if dKey == "dbms":
|
||||
injection.dbms = dValue
|
||||
if not isinstance(dValue, list):
|
||||
injection.dbms = Backend.setDbms(dValue)
|
||||
Backend.setDbms(dValue)
|
||||
else:
|
||||
Backend.forceDbms(dValue[0], True)
|
||||
elif dKey == "dbms_version" and injection.dbms_version is None and not conf.testFilter:
|
||||
|
|
|
@ -427,6 +427,8 @@ class Backend:
|
|||
dbms = conf.dbms
|
||||
elif len(Backend.getErrorParsedDBMSes()) > 0:
|
||||
dbms = Backend.getErrorParsedDBMSes()[0]
|
||||
elif kb.injection.dbms:
|
||||
dbms = unArrayizeValue(kb.injection.dbms)
|
||||
|
||||
return aliasToDbmsEnum(dbms)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user