From 3d37e317470f009eee3e5d8fce15005493d6dfbb Mon Sep 17 00:00:00 2001 From: ekultek Date: Fri, 24 Nov 2017 07:02:28 -0600 Subject: [PATCH] minor update to the AWS WAF script, just some small edits --- lib/firewall/aws.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/lib/firewall/aws.py b/lib/firewall/aws.py index 7b4014d..c53c174 100644 --- a/lib/firewall/aws.py +++ b/lib/firewall/aws.py @@ -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