mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-03 22:31:34 +00:00
refactoring of hard coded dbms names
This commit is contained in:
parent
9d2c81baa9
commit
685a8e7d2c
35 changed files with 251 additions and 206 deletions
|
|
@ -20,6 +20,7 @@ from lib.core.data import conf
|
|||
from lib.core.data import kb
|
||||
from lib.core.data import logger
|
||||
from lib.core.session import setDbms
|
||||
from lib.core.settings import DBMS
|
||||
from lib.core.settings import MAXDB_ALIASES
|
||||
from lib.request.connect import Connect as Request
|
||||
|
||||
|
|
@ -105,7 +106,7 @@ class Fingerprint(GenericFingerprint):
|
|||
|
||||
def checkDbms(self):
|
||||
if conf.dbms in MAXDB_ALIASES:
|
||||
setDbms("SAP MaxDB")
|
||||
setDbms(DBMS.MAXDB)
|
||||
|
||||
self.getBanner()
|
||||
|
||||
|
|
@ -133,7 +134,7 @@ class Fingerprint(GenericFingerprint):
|
|||
|
||||
return False
|
||||
|
||||
setDbms("SAP MaxDB")
|
||||
setDbms(DBMS.MAXDB)
|
||||
|
||||
self.getBanner()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue