From 1f42f52980a6d2e5625159748a1fe823a6dcca0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20=C5=A0tampar?= Date: Wed, 29 Jul 2026 16:00:04 +0200 Subject: [PATCH] Trivial just in case update --- lib/core/settings.py | 2 +- lib/request/dns.py | 2 +- lib/techniques/dns/use.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/core/settings.py b/lib/core/settings.py index b5b5ce7cf..9219f4783 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.246" +VERSION = "1.10.7.247" 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/lib/request/dns.py b/lib/request/dns.py index f97d7cf60..8dc1f0514 100644 --- a/lib/request/dns.py +++ b/lib/request/dns.py @@ -152,7 +152,7 @@ class DNSServer(object): with self._lock: for _ in self._requests: - if prefix is None and suffix is None or re.search(b"%s\\..+\\.%s" % (prefix, suffix), _, re.I): + if prefix is None and suffix is None or re.search(b"%s\\..+\\.%s" % (re.escape(prefix), re.escape(suffix)), _, re.I): self._requests.remove(_) retVal = _.decode() break diff --git a/lib/techniques/dns/use.py b/lib/techniques/dns/use.py index 1f0d21f31..5ee545240 100644 --- a/lib/techniques/dns/use.py +++ b/lib/techniques/dns/use.py @@ -87,7 +87,7 @@ def dnsUse(payload, expression): # Note: non-greedy so a '--dns-domain' label that happens to match the random # suffix can't make the match run past the real boundary (the boundary alphabet # excludes hex characters, so it can never under-match into the hex payload) - _ = extractRegexResult(r"%s\.(?P.+?)\.%s" % (prefix, suffix), _, re.I) + _ = extractRegexResult(r"%s\.(?P.+?)\.%s" % (re.escape(prefix), re.escape(suffix)), _, re.I) _ = decodeDbmsHexValue(_) output = (output or "") + _ offset += len(_)