minor update to the AWS WAF script, just some small edits

This commit is contained in:
ekultek 2017-11-24 07:02:28 -06:00
parent 5757f311b2
commit 3d37e31747

View file

@ -14,9 +14,8 @@ def detect(content, **kwargs):
re.compile(r"x.amz.id.\d+", re.I),
re.compile(r"x.amz.request.id", re.I)
)
if headers is not None:
for detection in detection_schema:
if detection.search(content) is not None:
return True
elif detection.search(str(headers)) is not None:
return True
for detection in detection_schema:
if detection.search(content) is not None:
return True
elif detection.search(str(headers)) is not None:
return True