Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1dd400f

Browse files
committed
Minor patch
1 parent feb1df6 commit 1dd400f

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

lib/core/settings.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
from 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"
2222
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
2323
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
2424
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)
@@ -564,6 +564,9 @@
564564
# Table used for Base64 conversion in WordPress hash cracking routine
565565
ITOA64 = "./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
568571
DUMMY_SQL_INJECTION_CHARS = ";()'"
569572

lib/parse/cmdline.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ def get_all_options(parser):
8383
from lib.core.option import _createHomeDirectories
8484
from lib.core.settings import BASIC_HELP_ITEMS
8585
from lib.core.settings import DUMMY_URL
86+
from lib.core.settings import IGNORED_OPTIONS
8687
from lib.core.settings import INFERENCE_UNKNOWN_CHAR
8788
from lib.core.settings import IS_WIN
8889
from 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"):

0 commit comments

Comments
 (0)