From 3f53b2bc05d387c865bd812ef41a406ebe89b7b1 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Fri, 7 Oct 2022 20:12:12 +0200 Subject: [PATCH] Fixes #5190 --- lib/core/settings.py | 2 +- lib/parse/cmdline.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/core/settings.py b/lib/core/settings.py index 09c95bda7..acf9c3433 100644 --- a/lib/core/settings.py +++ b/lib/core/settings.py @@ -20,7 +20,7 @@ from thirdparty import six from thirdparty.six import unichr as _unichr # sqlmap version (...) -VERSION = "1.6.10.0" +VERSION = "1.6.10.1" TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable" TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34} VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE) diff --git a/lib/parse/cmdline.py b/lib/parse/cmdline.py index 6409fea28..9bda7b8d5 100644 --- a/lib/parse/cmdline.py +++ b/lib/parse/cmdline.py @@ -986,7 +986,7 @@ def cmdLineParser(argv=None): argv[i] = argv[i].replace("--auth-creds", "--auth-cred", 1) elif argv[i].startswith("--drop-cookie"): argv[i] = argv[i].replace("--drop-cookie", "--drop-set-cookie", 1) - elif any(argv[i].startswith(_) for _ in ("--tamper", "--ignore-code", "--skip")): + elif re.search(r"\A(--(tamper|ignore-code|skip))(?!-)", argv[i]): key = re.search(r"\-?\-(\w+)\b", argv[i]).group(1) index = auxIndexes.get(key, None) if index is None: