mirror of
https://github.com/Ekultek/Zeus-Scanner.git
synced 2026-03-11 08:55:51 +00:00
19 lines
631 B
Python
19 lines
631 B
Python
import re
|
|
|
|
|
|
__item__ = "ModSecurity: Open Source Web Application Firewall"
|
|
|
|
|
|
def detect(content, **kwargs):
|
|
content = str(content)
|
|
detection_schema = (
|
|
re.compile(r"ModSecurity|NYOB", re.I),
|
|
re.compile(r"Mod Security", re.I),
|
|
re.compile(r"mod_security", re.I),
|
|
re.compile(r"This error was generated by Mod_Security", re.I),
|
|
re.compile(r"Web Server at", re.I),
|
|
re.compile(r"page you are (accessing|trying)? (to|is)? (access)? (is|to)? (restricted)?", re.I)
|
|
)
|
|
for detection in detection_schema:
|
|
if detection.search(content) is not None:
|
|
return True
|