Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 911f271

Browse files
committed
Update sucuri.py
1 parent 539c2e2 commit 911f271

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

waf/sucuri.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@ def detect(get_page):
1717

1818
for vector in WAF_ATTACK_VECTORS:
1919
page, headers, code = get_page(get=vector)
20-
retVal = code == 403
21-
retval = re.search(r"Sucuri/Cloudproxy", headers.get(HTTP_HEADER.SERVER, ""), re.I) is not None
20+
retVal = code == 403 and re.search(r"Sucuri/Cloudproxy", headers.get(HTTP_HEADER.SERVER, ""), re.I) is not None
2221
if retval:
2322
break
2423

0 commit comments

Comments
 (0)