mirror of
https://github.com/Ekultek/Zeus-Scanner.git
synced 2026-03-11 08:55:51 +00:00
19 lines
526 B
Python
19 lines
526 B
Python
import re
|
|
|
|
from lib.core.common import HTTP_HEADER
|
|
|
|
|
|
__item__ = "Stingray Application Firewall (Riverbed / Brocade)"
|
|
|
|
|
|
def detect(content, **kwargs):
|
|
headers = kwargs.get("headers", None)
|
|
status = kwargs.get("status", None)
|
|
status_schema = (403, 500)
|
|
detection_schema = (
|
|
re.compile(r"\AX-Mapping-", re.I),
|
|
)
|
|
for detection in detection_schema:
|
|
if detection.search(headers.get(HTTP_HEADER.SET_COOKIE, "")) is not None:
|
|
if status in status_schema:
|
|
return True
|