From 7cbbbaf2a14028ae0c7d691fc702df10296b8f87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20=C5=A0tampar?= Date: Tue, 15 Sep 2026 09:50:39 +0200 Subject: [PATCH] Patch related to the #6120 --- lib/core/settings.py | 2 +- sqlmap.py | 17 +++++++++-------- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/lib/core/settings.py b/lib/core/settings.py index d759ee0f1..644c589ec 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.9.9" +VERSION = "1.10.9.10" 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/sqlmap.py b/sqlmap.py index d246d3377..9435ffd80 100755 --- a/sqlmap.py +++ b/sqlmap.py @@ -422,14 +422,6 @@ def main(): logger.critical(errMsg) raise SystemExit - elif "object is not callable" in excMsg and (sys._jit.is_enabled() if hasattr(sys, "_jit") else os.environ.get("PYTHON_JIT") == '1'): - errMsg = "there is a known issue when sqlmap is run with the experimental Python JIT compiler turned on, " - errMsg += "where a regular callable (e.g. built-in function) bogusly resolves to an unrelated object. " - errMsg += "Please turn it off (e.g. 'PYTHON_JIT=0') and try again " - errMsg += "(Reference: 'https://github.com/sqlmapproject/sqlmap/issues/6117')" - logger.critical(errMsg) - raise SystemExit - elif all(_ in excMsg for _ in ("Resource temporarily unavailable", "os.fork()", "dictionaryAttack")): errMsg = "there has been a problem while running the multiprocessing hash cracking. " errMsg += "Please rerun with option '--threads=1'" @@ -566,6 +558,15 @@ def main(): logger.critical(errMsg) raise SystemExit + elif (sys._jit.is_enabled() if hasattr(sys, "_jit") else os.environ.get("PYTHON_JIT") == '1'): + errMsg = "the experimental Python JIT compiler appears to be turned on. There are known cases of it " + errMsg += "producing bogus errors inside otherwise correct code (e.g. a built-in function resolving " + errMsg += "to an unrelated object). Please rerun with it turned off (e.g. 'PYTHON_JIT=0') and report " + errMsg += "the problem only if it still occurs " + errMsg += "(Reference: 'https://github.com/sqlmapproject/sqlmap/issues/6117')" + logger.critical(errMsg) + raise SystemExit + for match in re.finditer(r'File "(.+?)", line', excMsg): file_ = match.group(1) try: