This commit is contained in:
Miroslav Stampar 2015-07-12 12:17:26 +02:00
parent a20da7a677
commit 4800ea7311

View File

@ -13,12 +13,12 @@ from lib.core.settings import WAF_ATTACK_VECTORS
__product__ = "EdgeCast WAF (Verizon)"
def detect(get_page):
retval = False
retVal = False
for vector in WAF_ATTACK_VECTORS:
page, headers, code = get_page(get=vector)
retVal = code == 400 and re.search(r"\AECDF", headers.get(HTTP_HEADER.SERVER, ""), re.I) is not None
if retval:
if retVal:
break
return retval
return retVal