mirror of
https://github.com/Ekultek/Zeus-Scanner.git
synced 2026-03-11 08:55:51 +00:00
21 lines
619 B
Python
21 lines
619 B
Python
import re
|
|
|
|
from lib.core.settings import PROTECTION_CHECK_PAYLOAD
|
|
|
|
|
|
__item__ = "Generic (Unknown)"
|
|
|
|
|
|
def detect(content, **kwargs):
|
|
content = str(content)
|
|
detection_schema = (
|
|
re.compile("blocked", re.I), re.compile("forbidden", re.I),
|
|
re.compile("illegal", re.I), re.compile("reported", re.I),
|
|
re.compile("logged", re.I), re.compile("access denied", re.I),
|
|
re.compile("ip address logged", re.I)
|
|
)
|
|
for detection in detection_schema:
|
|
if detection.search(content) is not None:
|
|
return True
|
|
if PROTECTION_CHECK_PAYLOAD in content:
|
|
return True
|