diff --git a/lib/core/agent.py b/lib/core/agent.py index 0501e95c2..22184524c 100644 --- a/lib/core/agent.py +++ b/lib/core/agent.py @@ -113,7 +113,11 @@ class Agent(object): paramDict = conf.paramDict[place] origValue = getUnicode(paramDict[parameter]) newValue = getUnicode(newValue) if newValue else newValue - base64Encoding = re.sub(r" \(.+", "", parameter) in conf.base64Parameter + try: + # Dirty patch for Python 3.14.7 re.sub() regression (e.g. https://github.com/sqlmapproject/sqlmap/issues/6128) + base64Encoding = re.sub(r" \(.+", "", parameter) in conf.base64Parameter + except TypeError: + base64Encoding = False if place == PLACE.URI or BOUNDED_INJECTION_MARKER in origValue: paramString = origValue diff --git a/lib/core/settings.py b/lib/core/settings.py index afaab12cb..e7c1a3950 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.21" +VERSION = "1.10.9.22" 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)