Minor patch

This commit is contained in:
Miroslav Stampar 2015-01-06 14:58:05 +01:00
parent e41591c9c1
commit e976418d28

View File

@ -17,7 +17,7 @@ def detect(get_page):
for vector in WAF_ATTACK_VECTORS: for vector in WAF_ATTACK_VECTORS:
page, headers, code = get_page(get=vector) page, headers, code = get_page(get=vector)
retval = re.search(r"\AECS", headers.get(HTTP_HEADER.SERVER, ""), re.I) is not None retVal = code == 400 and re.search(r"\AECDF", headers.get(HTTP_HEADER.SERVER, ""), re.I) is not None
if retval: if retval:
break break