Update of distil WAF script

This commit is contained in:
Miroslav Stampar
2019-01-10 13:23:34 +01:00
parent 915ee5ce53
commit 241c6b02f0
3 changed files with 5 additions and 4 deletions

View File

@@ -13,8 +13,9 @@ def detect(get_page):
retval = False
for vector in WAF_ATTACK_VECTORS:
_, headers, _ = get_page(get=vector)
page, headers, _ = get_page(get=vector)
retval = headers.get("x-distil-cs") is not None
retval |= any(_ in (page or "") for _ in ("distilCaptchaForm", "distilCallbackGuard", "cdn.distilnetworks.com/images/anomaly-detected.png"))
if retval:
break