mirror of
https://github.com/Ekultek/Zeus-Scanner.git
synced 2026-03-11 08:55:51 +00:00
19 lines
585 B
Python
19 lines
585 B
Python
import re
|
|
|
|
from lib.core.common import HTTP_HEADER
|
|
|
|
|
|
__item__ = "BIG-IP Application Security Manager (F5 Networks)"
|
|
|
|
|
|
def detect(content, **kwargs):
|
|
headers = kwargs.get("headers", None)
|
|
detection_schema = (
|
|
re.compile(r"\ATS\w{4,}=", re.I), re.compile(r"BIGip|BipServer", re.I),
|
|
re.compile(r"\AF5\Z", re.I)
|
|
)
|
|
for detection in detection_schema:
|
|
if detection.search(headers.get(HTTP_HEADER.SERVER, "")) is not None:
|
|
return True
|
|
if detection.search(headers.get(HTTP_HEADER.SET_COOKIE, "")) is not None:
|
|
return True
|