|
63 | 63 | from lib.core.settings import SUPPORTED_DBMS |
64 | 64 | from lib.core.settings import SUPPORTED_OS |
65 | 65 | from lib.core.settings import VERSION_STRING |
| 66 | +from lib.core.settings import MSSQL_ALIASES |
| 67 | +from lib.core.settings import MYSQL_ALIASES |
| 68 | +from lib.core.settings import PGSQL_ALIASES |
| 69 | +from lib.core.settings import ORACLE_ALIASES |
| 70 | +from lib.core.settings import SQLITE_ALIASES |
| 71 | +from lib.core.settings import ACCESS_ALIASES |
| 72 | +from lib.core.settings import FIREBIRD_ALIASES |
| 73 | +from lib.core.settings import MAXDB_ALIASES |
| 74 | +from lib.core.settings import SYBASE_ALIASES |
66 | 75 | from lib.core.update import update |
67 | 76 | from lib.parse.configfile import configFileParser |
68 | 77 | from lib.parse.payloads import loadPayloads |
@@ -588,6 +597,14 @@ def __setDBMS(): |
588 | 597 | errMsg += "fingerprint it for you." |
589 | 598 | raise sqlmapUnsupportedDBMSException, errMsg |
590 | 599 |
|
| 600 | + for aliases in (MSSQL_ALIASES, MYSQL_ALIASES, PGSQL_ALIASES, \ |
| 601 | + ORACLE_ALIASES, SQLITE_ALIASES, ACCESS_ALIASES, \ |
| 602 | + FIREBIRD_ALIASES, MAXDB_ALIASES, SYBASE_ALIASES): |
| 603 | + if conf.dbms in aliases: |
| 604 | + conf.dbms = aliases[0] |
| 605 | + |
| 606 | + break |
| 607 | + |
591 | 608 | def __setTamperingFunctions(): |
592 | 609 | """ |
593 | 610 | Loads tampering functions from given script(s) |
|
0 commit comments