diff --git a/baddns/lib/matcher.py b/baddns/lib/matcher.py index 5cb7fb7..842c0c8 100644 --- a/baddns/lib/matcher.py +++ b/baddns/lib/matcher.py @@ -77,7 +77,7 @@ def is_match(self, response): self.response = response matchers_condition = self.rules.get("matchers-condition", "and") results = [] - matcher_rule = self.rules.get("matcher_rule", []) + matcher_rule = self.rules.get("matcher_rule", {}) for matcher in matcher_rule.get("matchers", []): match_type = matcher["type"] match_func = getattr(self, f"_{match_type}", None) diff --git a/baddns/scripts/signaturetest.py b/baddns/scripts/signaturetest.py index cf2954a..3ef1078 100755 --- a/baddns/scripts/signaturetest.py +++ b/baddns/scripts/signaturetest.py @@ -102,7 +102,6 @@ def process_file(file_path): for follow_redirects in [True, False]: try: url = f"{scheme}://{rand_string()}.{cname}" - print(url) r = httpx.get(url, headers=headers, follow_redirects=follow_redirects, timeout=5) if matcher.is_match(r): match_found = True