Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Nov 26, 2024
1 parent 555a4de commit b4c316f
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions bbot/modules/internal/dnsresolve.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,14 +83,13 @@ async def handle_event(self, event, **kwargs):
event_data_changed = await self.handle_wildcard_event(main_host_event)
if event_data_changed:
# since data has changed, we check again whether it's a duplicate
if self.scan.ingress_module.is_incoming_duplicate(main_host_event):
if new_event:
if not event._graph_important:
return False, "event was already emitted by its module"
else:
self.debug(
f"Event {event} was already emitted by its module, but it's graph-important so it gets a pass"
)
if event.type == "DNS_NAME" and self.scan.ingress_module.is_incoming_duplicate(event, add=True):
if not event._graph_important:
return False, "it's a DNS wildcard, and its module already emitted a similar wildcard event"
else:
self.debug(
f"Event {event} was already emitted by its module, but it's graph-important so it gets a pass"
)

# if there weren't any DNS children and it's not an IP address, tag as unresolved
if not main_host_event.raw_dns_records and not event_is_ip:
Expand Down

0 comments on commit b4c316f

Please sign in to comment.