Zeus-Scanner/lib/firewall/paloalto.py

16 lines
414 B
Python

import re
__item__ = "Palo Alto Firewall (Palo Alto Networks)"
def detect(content, **kwargs):
content = str(content)
detection_schemas = (
re.compile(r"\bhas been blocked in accordance with company policy\b"),
re.compile(r"<.+>Virus.Spyware.Download.Blocked<.+.>")
)
for detection in detection_schemas:
if detection.search(content) is not None:
return True