From ed01510f286bf8ec1321ef37bae8f5464f69445d Mon Sep 17 00:00:00 2001 From: github-actions Date: Thu, 1 Aug 2024 22:30:17 -0400 Subject: [PATCH] fix scope accuracy tests --- bbot/modules/httpx.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bbot/modules/httpx.py b/bbot/modules/httpx.py index 17c66d47f..deda243a0 100644 --- a/bbot/modules/httpx.py +++ b/bbot/modules/httpx.py @@ -74,7 +74,7 @@ async def filter_event(self, event): in_scope_only = self.config.get("in_scope_only", True) if "httpx-safe" in event.tags: return True - max_scope_distance = 0 if in_scope_only else 1 + max_scope_distance = 0 if in_scope_only else (self.scan.scope_search_distance + 1) if event.scope_distance > max_scope_distance: return False, "event is not in scope" return True @@ -95,7 +95,6 @@ def make_url_metadata(self, event): return url, url_hash def _incoming_dedup_hash(self, event): - url, url_hash = self.make_url_metadata(event) return url_hash