Adding new WAF scripts (merging from identYwaf - same author)

This commit is contained in:
Miroslav Stampar
2019-01-15 00:41:00 +01:00
parent 6cdb90ddf8
commit 40f067aa17
9 changed files with 119 additions and 7 deletions

View File

@@ -16,9 +16,10 @@ def detect(get_page):
retval = False
for vector in WAF_ATTACK_VECTORS:
_, headers, _ = get_page(get=vector)
page, headers, _ = get_page(get=vector)
retval = re.search(r"\Abarra_counter_session=", headers.get(HTTP_HEADER.SET_COOKIE, ""), re.I) is not None
retval |= re.search(r"(\A|\b)barracuda_", headers.get(HTTP_HEADER.SET_COOKIE, ""), re.I) is not None
retval |= "when this page occurred and the event ID found at the bottom of the page" in (page or "")
if retval:
break