mirror of
https://github.com/Ekultek/Zeus-Scanner.git
synced 2026-03-11 08:55:51 +00:00
19 lines
564 B
Python
19 lines
564 B
Python
import re
|
|
|
|
|
|
__item__ = "Anquanbao Web Application Firewall (Anquanbao)"
|
|
|
|
|
|
def detect(content, **kwargs):
|
|
headers = kwargs.get("headers", None)
|
|
content = str(content)
|
|
detection_scehmas = (re.compile(r"/aqb_cc/error/"), )
|
|
if headers is not None:
|
|
for detection in detection_scehmas:
|
|
if detection.search(content) is not None:
|
|
return True
|
|
try:
|
|
if re.compile(r"MISS").search(headers.get("X-Powered-By-Anquanbao")) is not None:
|
|
return True
|
|
except Exception:
|
|
pass
|