From db2e74a81026355f25f895369f207bdf37d51a3b Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Tue, 26 Nov 2019 13:51:08 +0100 Subject: [PATCH] Minor patch --- lib/controller/checks.py | 2 +- lib/core/settings.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/controller/checks.py b/lib/controller/checks.py index f0630ec89..e61b7ae06 100644 --- a/lib/controller/checks.py +++ b/lib/controller/checks.py @@ -600,7 +600,7 @@ def checkSqlInjection(place, parameter, value): if candidates: candidates = sorted(candidates, key=len) for candidate in candidates: - if re.match(r"\A\w+\Z", candidate): + if re.match(r"\A\w{2,}\Z", candidate): # Note: length of 1 (e.g. --string=5) could cause trouble, especially in error message pages with partially reflected payload content break conf.string = candidate diff --git a/lib/core/settings.py b/lib/core/settings.py index 6c8c5eb85..1bf19c488 100644 --- a/lib/core/settings.py +++ b/lib/core/settings.py @@ -18,7 +18,7 @@ from lib.core.enums import OS from thirdparty.six import unichr as _unichr # sqlmap version (...) -VERSION = "1.3.11.103" +VERSION = "1.3.11.104" 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)