Skip to content

SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.

sfp_tldsearch: Don't report domains that are part of the target.

smicallef17dfac5896fa
diff --git a/modules/sfp_tldsearch.py b/modules/sfp_tldsearch.py
index 19cc13c5..eaec60a9 100644
--- a/modules/sfp_tldsearch.py
+++ b/modules/sfp_tldsearch.py
@@ -118,6 +118,8 @@ class sfp_tldsearch(SpiderFootPlugin):
time.sleep(0.1)
for res in self.tldResults:
+ if self.getTarget().matches(res, includeParents=True, includeChildren=True):
+ continue
if self.tldResults[res] and res not in self.results:
self.sendEvent(sourceEvent, res)