Update of modsecurity.py WAF script

This commit is contained in:
Miroslav Stampar 2014-11-28 13:32:41 +01:00
parent 0c99b79c60
commit e8673b9acc

View File

@ -19,6 +19,7 @@ def detect(get_page):
page, headers, code = get_page(get=vector)
retval = code == 501 and re.search(r"Reference #[0-9A-Fa-f.]+", page, re.I) is None
retval |= re.search(r"Mod_Security|NOYB", headers.get(HTTP_HEADER.SERVER, ""), re.I) is not None
retval |= "This error was generated by Mod_Security" in page
if retval:
break