|
17 | 17 | from optparse import OptionParser |
18 | 18 | from optparse import SUPPRESS_HELP |
19 | 19 |
|
20 | | -from lib.core.common import checkObsoleteOptions |
| 20 | +from lib.core.common import checkOldOptions |
21 | 21 | from lib.core.common import checkSystemEncoding |
22 | 22 | from lib.core.common import dataToStdout |
23 | 23 | from lib.core.common import expandMnemonics |
|
28 | 28 | from lib.core.data import conf |
29 | 29 | from lib.core.data import logger |
30 | 30 | from lib.core.defaults import defaults |
| 31 | +from lib.core.dicts import DEPRECATED_OPTIONS |
31 | 32 | from lib.core.enums import AUTOCOMPLETE_TYPE |
32 | 33 | from lib.core.exception import SqlmapShellQuitException |
33 | 34 | from lib.core.exception import SqlmapSyntaxException |
@@ -789,7 +790,7 @@ def _(self, *args): |
789 | 790 | _.append(getUnicode(arg, encoding=sys.stdin.encoding)) |
790 | 791 |
|
791 | 792 | argv = _ |
792 | | - checkObsoleteOptions(argv) |
| 793 | + checkOldOptions(argv) |
793 | 794 |
|
794 | 795 | prompt = "--sqlmap-shell" in argv |
795 | 796 |
|
@@ -854,6 +855,8 @@ def _(self, *args): |
854 | 855 | elif re.search(r"\A-\w=.+", argv[i]): |
855 | 856 | dataToStdout("[!] potentially miswritten (illegal '=') short option detected ('%s')\n" % argv[i]) |
856 | 857 | raise SystemExit |
| 858 | + elif argv[i] in DEPRECATED_OPTIONS: |
| 859 | + argv[i] = "" |
857 | 860 | elif argv[i].startswith("--tamper"): |
858 | 861 | if tamperIndex is None: |
859 | 862 | tamperIndex = i if '=' in argv[i] else (i + 1 if i + 1 < len(argv) and not argv[i + 1].startswith('-') else None) |
|
0 commit comments