mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-27 04:05:58 +00:00
Update of WAF script for Cloudfront
This commit is contained in:
parent
094ce29709
commit
ed0420e635
3 changed files with 5 additions and 4 deletions
|
|
@ -15,9 +15,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"Error from cloudfront", headers.get("X-Cache", ""), re.I) is not None
|
||||
retval |= all(_ in (page or "") for _ in ("Generated by cloudfront", "Request blocked"))
|
||||
|
||||
if retval:
|
||||
break
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue