Zeus-Scanner/lib/firewall/powerful.py

17 lines
465 B
Python

import re
__item__ = "Powerful Firewall (MyBB plugin)"
def detect(content, **kwargs):
status = kwargs.get("status", None)
detection_schema = (
re.compile(r"Powerful Firewall", re.I),
re.compile(r"http(s)?...tiny.cc.powerful.firewall", re.I)
)
if status is not None:
if status == 403:
for detection in detection_schema:
if detection.search(content) is not None:
return True