File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1818from thirdparty .six import unichr as _unichr
1919
2020# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
21- VERSION = "1.4.2.11 "
21+ VERSION = "1.4.2.12 "
2222TYPE = "dev" if VERSION .count ('.' ) > 2 and VERSION .split ('.' )[- 1 ] != '0' else "stable"
2323TYPE_COLORS = {"dev" : 33 , "stable" : 90 , "pip" : 34 }
2424VERSION_STRING = "sqlmap/%s#%s" % ('.' .join (VERSION .split ('.' )[:- 1 ]) if VERSION .count ('.' ) > 2 and VERSION .split ('.' )[- 1 ] == '0' else VERSION , TYPE )
564564# Table used for Base64 conversion in WordPress hash cracking routine
565565ITOA64 = "./0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"
566566
567+ # Options/switches to be ignored in command-line parsing (e.g. those passed from Firefox)
568+ IGNORED_OPTIONS = ("--compressed" ,)
569+
567570# Chars used to quickly distinguish if the user provided tainted parameter values
568571DUMMY_SQL_INJECTION_CHARS = ";()'"
569572
Original file line number Diff line number Diff line change @@ -83,6 +83,7 @@ def get_all_options(parser):
8383from lib .core .option import _createHomeDirectories
8484from lib .core .settings import BASIC_HELP_ITEMS
8585from lib .core .settings import DUMMY_URL
86+ from lib .core .settings import IGNORED_OPTIONS
8687from lib .core .settings import INFERENCE_UNKNOWN_CHAR
8788from lib .core .settings import IS_WIN
8889from lib .core .settings import MAX_HELP_OPTION_LENGTH
@@ -928,6 +929,8 @@ def _format_action_invocation(self, action):
928929 elif re .search (r"\A-\w{3,}" , argv [i ]):
929930 if argv [i ].strip ('-' ).split ('=' )[0 ] in (longOptions | longSwitches ):
930931 argv [i ] = "-%s" % argv [i ]
932+ elif argv [i ] in IGNORED_OPTIONS :
933+ argv [i ] = ""
931934 elif argv [i ] in DEPRECATED_OPTIONS :
932935 argv [i ] = ""
933936 elif argv [i ].startswith ("--tamper" ):
You can’t perform that action at this time.
0 commit comments