|
93 | 93 | from lib.core.exception import SqlmapUserQuitException |
94 | 94 | from lib.core.log import FORMATTER |
95 | 95 | from lib.core.optiondict import optDict |
96 | | -from lib.core.settings import ACCESS_ALIASES |
97 | 96 | from lib.core.settings import BURP_REQUEST_REGEX |
98 | 97 | from lib.core.settings import BURP_XML_HISTORY_REGEX |
99 | 98 | from lib.core.settings import CODECS_LIST_PAGE |
100 | 99 | from lib.core.settings import CRAWL_EXCLUDE_EXTENSIONS |
101 | 100 | from lib.core.settings import CUSTOM_INJECTION_MARK_CHAR |
102 | | -from lib.core.settings import DB2_ALIASES |
| 101 | +from lib.core.settings import DBMS_ALIASES |
103 | 102 | from lib.core.settings import DEFAULT_PAGE_ENCODING |
104 | 103 | from lib.core.settings import DEFAULT_TOR_HTTP_PORTS |
105 | 104 | from lib.core.settings import DEFAULT_TOR_SOCKS_PORT |
106 | 105 | from lib.core.settings import DUMMY_URL |
107 | | -from lib.core.settings import FIREBIRD_ALIASES |
108 | 106 | from lib.core.settings import INJECT_HERE_MARK |
109 | 107 | from lib.core.settings import IS_WIN |
110 | 108 | from lib.core.settings import KB_CHARS_BOUNDARY_CHAR |
111 | 109 | from lib.core.settings import LOCALHOST |
112 | | -from lib.core.settings import MAXDB_ALIASES |
113 | 110 | from lib.core.settings import MAX_CONNECT_RETRIES |
114 | 111 | from lib.core.settings import MAX_NUMBER_OF_THREADS |
115 | | -from lib.core.settings import MSSQL_ALIASES |
116 | | -from lib.core.settings import MYSQL_ALIASES |
117 | 112 | from lib.core.settings import NULL |
118 | | -from lib.core.settings import ORACLE_ALIASES |
119 | 113 | from lib.core.settings import PARAMETER_SPLITTING_REGEX |
120 | | -from lib.core.settings import PGSQL_ALIASES |
121 | 114 | from lib.core.settings import PROBLEMATIC_CUSTOM_INJECTION_PATTERNS |
122 | 115 | from lib.core.settings import SITE |
123 | | -from lib.core.settings import SQLITE_ALIASES |
124 | 116 | from lib.core.settings import SQLMAP_ENVIRONMENT_PREFIX |
125 | 117 | from lib.core.settings import SUPPORTED_DBMS |
126 | 118 | from lib.core.settings import SUPPORTED_OS |
127 | | -from lib.core.settings import SYBASE_ALIASES |
128 | 119 | from lib.core.settings import TIME_DELAY_CANDIDATES |
129 | 120 | from lib.core.settings import UNION_CHAR_REGEX |
130 | 121 | from lib.core.settings import UNKNOWN_DBMS_VERSION |
@@ -890,11 +881,9 @@ def _setDBMS(): |
890 | 881 | errMsg += "it and sqlmap will fingerprint it for you." |
891 | 882 | raise SqlmapUnsupportedDBMSException(errMsg) |
892 | 883 |
|
893 | | - for aliases in (MSSQL_ALIASES, MYSQL_ALIASES, PGSQL_ALIASES, ORACLE_ALIASES, \ |
894 | | - SQLITE_ALIASES, ACCESS_ALIASES, FIREBIRD_ALIASES, \ |
895 | | - MAXDB_ALIASES, SYBASE_ALIASES, DB2_ALIASES): |
| 884 | + for dbms, aliases in DBMS_ALIASES: |
896 | 885 | if conf.dbms in aliases: |
897 | | - conf.dbms = aliases[0] |
| 886 | + conf.dbms = dbms |
898 | 887 |
|
899 | 888 | break |
900 | 889 |
|
|
0 commit comments