Skip to content

Commit

Permalink
Merge pull request #927 from blacklanternsecurity/fix-blacklist
Browse files Browse the repository at this point in the history
Fix blacklist bug
  • Loading branch information
TheTechromancer authored Dec 21, 2023
2 parents 850a97c + 271b7e0 commit 61c00a3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bbot/scanner/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,11 @@ async def _emit_event(self, event, **kwargs):
log.debug(f"Omitting due to blacklisted {reason}: {event}")
return

# other blacklist rejections - URL extensions, etc.
if "blacklisted" in event.tags:
log.debug(f"Omitting blacklisted event: {event}")
return

# DNS_NAME --> DNS_NAME_UNRESOLVED
if event.type == "DNS_NAME" and "unresolved" in event.tags and not "target" in event.tags:
event.type = "DNS_NAME_UNRESOLVED"
Expand Down

0 comments on commit 61c00a3

Please sign in to comment.