From e1502e0ceacba603d03b921ce46ebe75fae00c66 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Mon, 17 Feb 2020 12:24:23 +0100 Subject: [PATCH] Fixes #4118 --- lib/core/settings.py | 2 +- lib/request/dns.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/core/settings.py b/lib/core/settings.py index 9bd997adb..e62fd06fd 100644 --- a/lib/core/settings.py +++ b/lib/core/settings.py @@ -18,7 +18,7 @@ from lib.core.enums import OS from thirdparty.six import unichr as _unichr # sqlmap version (...) -VERSION = "1.4.2.35" +VERSION = "1.4.2.36" 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 af6244c9e..c7be4aba9 100644 --- a/lib/request/dns.py +++ b/lib/request/dns.py @@ -115,8 +115,8 @@ 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): - retVal = _ self._requests.remove(_) + retVal = _.decode() break return retVal @@ -165,7 +165,7 @@ if __name__ == "__main__": if _ is None: break else: - print("[i] %s" % _.decode()) + print("[i] %s" % _) time.sleep(1)