From b0afe6b8d4b01fb8f6e43ff2f124d88cbeda32b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20=C5=A0tampar?= Date: Tue, 28 Jul 2026 18:17:19 +0200 Subject: [PATCH] Fixing CI/CD errors --- lib/core/settings.py | 2 +- tests/test_error_engine.py | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/lib/core/settings.py b/lib/core/settings.py index ca9cb5170..d85c82f55 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.7.225" +VERSION = "1.10.7.226" 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_error_engine.py b/tests/test_error_engine.py index 69cb07417..4b07eb52c 100644 --- a/tests/test_error_engine.py +++ b/tests/test_error_engine.py @@ -128,6 +128,7 @@ class TestErrorChunkLengthHex(unittest.TestCase): "forceWhere": kb.get("forceWhere"), "technique": kb.get("technique"), "inj": (kb.injection.place, kb.injection.parameter, kb.injection.data), "qp": Connect.queryPage, + "dbmsHandler": conf.get("dbmsHandler"), "forceDbms": conf.get("forceDbms"), } conf.hexConvert = False conf.charset = None @@ -141,6 +142,11 @@ class TestErrorChunkLengthHex(unittest.TestCase): kb.injection.parameter = "id" kb.technique = PAYLOAD.TECHNIQUE.ERROR kb.injection.data = {PAYLOAD.TECHNIQUE.ERROR: _make_vector()} + # With testMode=False, getIdentifiedDbms() prefers conf.dbmsHandler._dbms and conf.forceDbms + # over the forced DBMS below; a leaked handler/option (e.g. MSSQL) would make the chunk-length + # probe emit REPLICATE (not REPEAT) and the oracle mis-detect length 0. Clear both to isolate. + conf.dbmsHandler = None + conf.forceDbms = None set_dbms("MySQL") def tearDown(self): @@ -157,6 +163,8 @@ class TestErrorChunkLengthHex(unittest.TestCase): kb.injection.place, kb.injection.parameter, kb.injection.data = self._saved["inj"] Connect.queryPage = self._saved["qp"] eu.Request.queryPage = self._saved["qp"] + conf.dbmsHandler = self._saved["dbmsHandler"] + conf.forceDbms = self._saved["forceDbms"] def _install_oracle(self, secret="hello"): cap = self.CAP