From 0c67a90cc0dcce929c22fa04623c7a334c5c12d0 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Mon, 2 May 2016 10:06:30 +0200 Subject: [PATCH] Minor bug fix --- lib/core/settings.py | 2 +- waf/baidu.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/core/settings.py b/lib/core/settings.py index 848298844..7f87b4649 100644 --- a/lib/core/settings.py +++ b/lib/core/settings.py @@ -19,7 +19,7 @@ from lib.core.enums import OS from lib.core.revision import getRevisionNumber # sqlmap version (...) -VERSION = "1.0.4.24" +VERSION = "1.0.4.25" REVISION = getRevisionNumber() STABLE = VERSION.count('.') <= 2 VERSION_STRING = "sqlmap/%s#%s" % (VERSION, "stable" if STABLE else "dev") diff --git a/waf/baidu.py b/waf/baidu.py index 799d10de8..60e58feea 100644 --- a/waf/baidu.py +++ b/waf/baidu.py @@ -18,7 +18,7 @@ def detect(get_page): for vector in WAF_ATTACK_VECTORS: _, headers, _ = get_page(get=vector) retval = re.search(r"fhl", headers.get("X-Server", ""), re.I) is not None - retval |= re.search(r"yunjiasu-nginx", headers.get(HTTP_HEADER.SERVER), re.I) is not None + retval |= re.search(r"yunjiasu-nginx", headers.get(HTTP_HEADER.SERVER, ""), re.I) is not None if retval: break