Skip to content

Commit

Permalink
Merge branch 'main' into new-signature-dnsreaper_shopify.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
liquidsec authored Mar 11, 2024
2 parents aa77163 + c2f4e5a commit bcc27b3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion baddns/lib/matcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 0 additions & 1 deletion baddns/scripts/signaturetest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bcc27b3

Please sign in to comment.