From e10092efcda67304f59a13f980c5012d95e98905 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20=C5=A0tampar?= Date: Fri, 4 Sep 2026 09:03:25 +0200 Subject: [PATCH] Fixes #6104 --- lib/core/option.py | 7 +++++++ lib/core/settings.py | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/lib/core/option.py b/lib/core/option.py index 5cf18f717..7624f884a 100644 --- a/lib/core/option.py +++ b/lib/core/option.py @@ -905,6 +905,13 @@ def _setTamperingFunctions(): priority = PRIORITY.NORMAL if not hasattr(module, "__priority__") else module.__priority__ priority = priority if priority is not None else PRIORITY.LOWEST + if not isinstance(priority, int): + warnMsg = "tamper module '%s' has an invalid value for '__priority__' " % filename[:-3] + warnMsg += "(assuming '%d')" % PRIORITY.NORMAL + logger.warning(warnMsg) + + priority = PRIORITY.NORMAL + for name, function in inspect.getmembers(module, inspect.isfunction): if name == "tamper" and (hasattr(inspect, "signature") and all(_ in inspect.signature(function).parameters for _ in ("payload", "kwargs")) or inspect.getargspec(function).args and inspect.getargspec(function).keywords == "kwargs"): found = True diff --git a/lib/core/settings.py b/lib/core/settings.py index 4dbb9e225..6f1586f7a 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.2" +VERSION = "1.10.9.3" 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)