Merge pull request #1543 from Wyc0/master

enhance recognition of "baiduyun" in waf/baidu.py
This commit is contained in:
Miroslav Stampar 2015-11-18 09:01:27 +01:00
commit 378005d438

View File

@ -17,6 +17,7 @@ def detect(get_page):
for vector in WAF_ATTACK_VECTORS: for vector in WAF_ATTACK_VECTORS:
page, headers, code = get_page(get=vector) page, headers, code = get_page(get=vector)
retval = re.search(r"fhl", headers.get("X-Server", ""), re.I) is not None retval = re.search(r"fhl", headers.get("X-Server", ""), re.I) is not None
retval |= re.search(r"yunjiasu-nginx", headers.get("server"), re.I) is not None
if retval: if retval:
break break