From 133e2c8c613417820533cb31f35f4e6c54ab8098 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Thu, 11 Mar 2021 21:31:28 +0100 Subject: [PATCH] Trivial update --- lib/core/settings.py | 2 +- lib/core/testing.py | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/core/settings.py b/lib/core/settings.py index 1441f451c..6157a1170 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.5.3.13" +VERSION = "1.5.3.14" 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/core/testing.py b/lib/core/testing.py index 522f97d96..abec58e97 100644 --- a/lib/core/testing.py +++ b/lib/core/testing.py @@ -208,11 +208,15 @@ def fuzzTest(): if any(_ in lines[j] for _ in ("googleDork",)): continue + if re.search(r"= (True|False)", lines[j]): + lines[j] = lines[j].replace(" = False", " = True") + continue + if lines[j].strip().endswith('='): lines[j] += random.sample(("True", "False", randomStr(), str(randomInt())), 1)[0] k = random.randint(0, len(lines) - 1) - if '=' in lines[k]: + if '=' in lines[k] and not re.search(r"= (True|False)", lines[k]): lines[k] += chr(random.randint(0, 255)) open(config, "w+").write("\n".join(lines))