mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-25 11:03:47 +03:00
isDbmsWithin() must stay like this, no getIdentifiedDbms() in there
This commit is contained in:
parent
742b0ef76e
commit
c58dc4a6d8
|
@ -429,12 +429,7 @@ class Backend:
|
|||
|
||||
@staticmethod
|
||||
def isDbmsWithin(aliases):
|
||||
if Backend.getDbms() is not None:
|
||||
return Backend.getDbms().lower() in aliases
|
||||
elif Backend.getIdentifiedDbms() is not None:
|
||||
return Backend.getIdentifiedDbms().lower() in aliases
|
||||
else:
|
||||
return False
|
||||
return Backend.getDbms() is not None and Backend.getDbms().lower() in aliases
|
||||
|
||||
@staticmethod
|
||||
def isVersion(version):
|
||||
|
|
|
@ -63,6 +63,10 @@ class Fingerprint(GenericFingerprint):
|
|||
return value
|
||||
|
||||
def checkDbms(self):
|
||||
print "Backend.getDbms():", Backend.getDbms()
|
||||
print "Backend.isDbmsWithin(ORACLE_ALIASES):", Backend.isDbmsWithin(ORACLE_ALIASES)
|
||||
print "conf.dbms:", conf.dbms
|
||||
|
||||
if not conf.extensiveFp and (Backend.isDbmsWithin(ORACLE_ALIASES) or conf.dbms in ORACLE_ALIASES):
|
||||
setDbms(DBMS.ORACLE)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user