mirror of
https://github.com/Ekultek/Zeus-Scanner.git
synced 2026-03-11 08:55:51 +00:00
17 lines
470 B
Python
17 lines
470 B
Python
import re
|
|
|
|
|
|
__item__ = "CloudFront Firewall (Amazon)"
|
|
|
|
|
|
def detect(content, **kwargs):
|
|
headers = kwargs.get("headers", None)
|
|
detection_schema = (
|
|
re.compile(r"\d.\d.[a-zA-Z0-9]{32,60}.cloudfront.net", re.I),
|
|
re.compile(r"cloudfront", re.I),
|
|
re.compile(r"X-Amz-Cf-Id", re.I)
|
|
)
|
|
if headers is not None:
|
|
for detection in detection_schema:
|
|
if detection.search(str(headers)) is not None:
|
|
return True
|