Update for WAF scripts

This commit is contained in:
stamparm
2013-02-26 15:30:11 +01:00
parent 6c38afab35
commit e5835dc74f
10 changed files with 73 additions and 6 deletions

View File

@@ -13,4 +13,7 @@ __product__ = "BinarySEC Web Application Firewall (BinarySEC)"
def detect(get_page):
page, headers, code = get_page()
return re.search(r"BinarySec", headers.get(HTTPHEADER.SERVER, ""), re.I) is not None
retval = re.search(r"BinarySec", headers.get(HTTPHEADER.SERVER, ""), re.I) is not None
if not retval:
retval = any(headers.get(_) for _ in ("x-binarysec-via", "x-binarysec-nocache"))
return retval