Fixing CI/CD errors

This commit is contained in:
Miroslav Štampar
2026-08-17 16:52:00 +02:00
parent 49a774035f
commit 77ee160875
2 changed files with 5 additions and 4 deletions
+1 -1
View File
@@ -20,7 +20,7 @@ from lib.core.enums import OS
from thirdparty import six
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
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)
+4 -3
View File
@@ -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):