import re __item__ = "DynamicWeb Injection Check (DynamicWeb)" def detect(content, **kwargs): headers = kwargs.get("headers", None) status = kwargs.get("status", None) detection_schema = ( re.compile(r"dw.inj.check", re.I), ) if status == 403: for detection in detection_schema: if detection.search(headers.get("X-403-status-by", "")) is not None: return True