From 77ee160875b0d5b5535c7854a11d25e94050dd62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20=C5=A0tampar?= Date: Mon, 17 Aug 2026 16:52:00 +0200 Subject: [PATCH] Fixing CI/CD errors --- lib/core/settings.py | 2 +- tests/test_wafbypass.py | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/core/settings.py b/lib/core/settings.py index 6266dad78..9a4f560a3 100644 --- a/lib/core/settings.py +++ b/lib/core/settings.py @@ -20,7 +20,7 @@ from lib.core.enums import OS from thirdparty import six # sqlmap version (...) -VERSION = "1.10.8.43" +VERSION = "1.10.8.44" 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/tests/test_wafbypass.py b/tests/test_wafbypass.py index 9e69ef25a..bfdc9cc4d 100644 --- a/tests/test_wafbypass.py +++ b/tests/test_wafbypass.py @@ -38,9 +38,10 @@ class TestIdentYwafDecoder(unittest.TestCase): class TestCandidateRanking(unittest.TestCase): def test_structural_first(self): cands = candidateTampers() - # the empirically strongest structural substitutions lead, ahead of camouflage - self.assertEqual(cands[0], "equaltolike") - self.assertIn("between", cands[:3]) + # the empirically strongest structural substitutions lead, ahead of camouflage. The first + # three are the ones measured to get through a CRS-class ruleset, so they are trialled first + self.assertEqual(cands[:3], ["castprefix", "mid2leftright", "odbcbrace"]) + self.assertLess(cands.index("equaltolike"), cands.index("randomcase")) self.assertLess(cands.index("between"), cands.index("space2comment")) def test_no_dbms_prefiltering(self):