Skip to content

Commit

Permalink
Merge pull request #1033 from blacklanternsecurity/fix-cname-wildcard
Browse files Browse the repository at this point in the history
Fix massdns CNAME wildcard bug
  • Loading branch information
TheTechromancer authored Jan 27, 2024
2 parents 9044aee + 056206f commit 4d6375b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions bbot/modules/massdns.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,7 @@ async def massdns(self, domain, subdomains):
for rdtype, results in rdtypes.items():
if results:
domain_wildcard_rdtypes.add(rdtype)

if "A" in domain_wildcard_rdtypes:
if any([r in domain_wildcard_rdtypes for r in ("A", "CNAME")]):
self.info(
f"Aborting massdns on {domain} because it's a wildcard domain ({','.join(domain_wildcard_rdtypes)})"
)
Expand Down

0 comments on commit 4d6375b

Please sign in to comment.