Minor fix for TrafficShield WAF script

This commit is contained in:
stamparm 2013-02-26 11:19:12 +01:00
parent af4762ace2
commit 2fc9396bb0

View File

@ -13,4 +13,4 @@ __product__ = "TrafficShield (F5 Networks)"
def detect(get_page):
page, headers, code = get_page()
return (re.search(r"\AASINFO=", headers.get(HTTPHEADER.COOKIE, ""), re.I) or re.search(r"F5-TrafficShield", headers.get(HTTPHEADER.SERVER, ""), re.I)) is not None
return (re.search(r"\AASINFO=", headers.get(HTTPHEADER.SET_COOKIE, ""), re.I) or re.search(r"F5-TrafficShield", headers.get(HTTPHEADER.SERVER, ""), re.I)) is not None