diff --git a/lib/core/settings.py b/lib/core/settings.py index 655452df0..4e78f3371 100644 --- a/lib/core/settings.py +++ b/lib/core/settings.py @@ -17,7 +17,7 @@ from lib.core.enums import DBMS_DIRECTORY_NAME from lib.core.enums import OS # sqlmap version (...) -VERSION = "1.3.4.2" +VERSION = "1.3.4.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) diff --git a/waf/generic.py b/waf/generic.py index 6fa4e4419..6e6aa1d05 100644 --- a/waf/generic.py +++ b/waf/generic.py @@ -7,6 +7,7 @@ See the file 'LICENSE' for copying permission import re +from lib.core.common import getUnicode from lib.core.data import kb from lib.core.settings import GENERIC_PROTECTION_REGEX from lib.core.settings import IPS_WAF_CHECK_PAYLOAD @@ -26,7 +27,7 @@ def detect(get_page): if code >= 400 or (IPS_WAF_CHECK_PAYLOAD in vector and (code is None or re.search(GENERIC_PROTECTION_REGEX, page or "") and not re.search(GENERIC_PROTECTION_REGEX, original or ""))): if code is not None: - kb.wafSpecificResponse = "HTTP/1.1 %s\n%s\n%s" % (code, "".join(_ for _ in (headers.headers if headers else {}) or [] if not _.startswith("URI")), page) + kb.wafSpecificResponse = "HTTP/1.1 %s\n%s\n%s" % (code, "".join(getUnicode(_) for _ in (headers.headers if headers else {}) or [] if not _.startswith("URI")), getUnicode(page or "")) retval = True break