From 271b7e0ab8262cb471babde0ed7971babd9b1e2f Mon Sep 17 00:00:00 2001 From: TheTechromancer Date: Thu, 21 Dec 2023 08:52:21 -0500 Subject: [PATCH] fix broken blacklist --- bbot/scanner/manager.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bbot/scanner/manager.py b/bbot/scanner/manager.py index 13d46669d..c8e3a1531 100644 --- a/bbot/scanner/manager.py +++ b/bbot/scanner/manager.py @@ -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"