mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-04 06:50:14 +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
|
|
@ -19,6 +19,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 PGSQL_ALIASES
|
||||
from lib.core.settings import PGSQL_SYSTEM_DBS
|
||||
from lib.request import inject
|
||||
|
|
@ -73,7 +74,7 @@ class Fingerprint(GenericFingerprint):
|
|||
"""
|
||||
|
||||
if conf.dbms in PGSQL_ALIASES:
|
||||
setDbms("PostgreSQL")
|
||||
setDbms(DBMS.POSTGRESQL)
|
||||
|
||||
self.getBanner()
|
||||
|
||||
|
|
@ -101,7 +102,7 @@ class Fingerprint(GenericFingerprint):
|
|||
|
||||
return False
|
||||
|
||||
setDbms("PostgreSQL")
|
||||
setDbms(DBMS.POSTGRESQL)
|
||||
|
||||
self.getBanner()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue