From 911f27116ac84a52275e6f193bd03a41e7581681 Mon Sep 17 00:00:00 2001 From: Jay Turla Date: Thu, 28 Aug 2014 09:23:44 +0800 Subject: [PATCH] Update sucuri.py --- waf/sucuri.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/waf/sucuri.py b/waf/sucuri.py index 8a9e054a8..1babc671e 100644 --- a/waf/sucuri.py +++ b/waf/sucuri.py @@ -17,8 +17,7 @@ def detect(get_page): for vector in WAF_ATTACK_VECTORS: page, headers, code = get_page(get=vector) - retVal = code == 403 - retval = re.search(r"Sucuri/Cloudproxy", headers.get(HTTP_HEADER.SERVER, ""), re.I) is not None + retVal = code == 403 and re.search(r"Sucuri/Cloudproxy", headers.get(HTTP_HEADER.SERVER, ""), re.I) is not None if retval: break