mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-06 20:51:31 +00:00
Added DB2 support - patch provided by Sebastian Bittig
This commit is contained in:
@@ -97,6 +97,7 @@ from lib.core.settings import ACCESS_ALIASES
|
||||
from lib.core.settings import FIREBIRD_ALIASES
|
||||
from lib.core.settings import MAXDB_ALIASES
|
||||
from lib.core.settings import SYBASE_ALIASES
|
||||
from lib.core.settings import DB2_ALIASES
|
||||
from lib.core.settings import BURP_SPLITTER
|
||||
from lib.core.settings import LOCALHOST
|
||||
from lib.core.settings import MAX_NUMBER_OF_THREADS
|
||||
@@ -757,9 +758,9 @@ def __setDBMS():
|
||||
errMsg += "it and sqlmap will fingerprint it for you."
|
||||
raise sqlmapUnsupportedDBMSException, errMsg
|
||||
|
||||
for aliases in (MSSQL_ALIASES, MYSQL_ALIASES, PGSQL_ALIASES, \
|
||||
ORACLE_ALIASES, SQLITE_ALIASES, ACCESS_ALIASES, \
|
||||
FIREBIRD_ALIASES, MAXDB_ALIASES, SYBASE_ALIASES):
|
||||
for aliases in (MSSQL_ALIASES, MYSQL_ALIASES, PGSQL_ALIASES, ORACLE_ALIASES, \
|
||||
SQLITE_ALIASES, ACCESS_ALIASES, FIREBIRD_ALIASES, \
|
||||
MAXDB_ALIASES, SYBASE_ALIASES, DB2_ALIASES):
|
||||
if conf.dbms in aliases:
|
||||
conf.dbms = aliases[0]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user