Skip to content

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

sfp_torch: Only report search result content if links reported.

smicallef2599355179de
diff --git a/modules/sfp_torch.py b/modules/sfp_torch.py
index bd6e1eea..038ccbfc 100644
--- a/modules/sfp_torch.py
+++ b/modules/sfp_torch.py
@@ -128,7 +128,6 @@ class sfp_torch(SpiderFootPlugin):
if link in self.results:
continue
- linkcount += 1
self.results[link] = True
self.debug(f"Found a darknet mention: {link}")
if self.sf.urlFQDN(link).endswith(".onion"):
@@ -147,6 +146,7 @@ class sfp_torch(SpiderFootPlugin):
continue
evt = SpiderFootEvent("DARKNET_MENTION_URL", link, self.__name__, event)
self.notifyListeners(evt)
+ linkcount += 1
try:
startIndex = res['content'].index(eventData) - 120
@@ -163,6 +163,7 @@ class sfp_torch(SpiderFootPlugin):
else:
evt = SpiderFootEvent("DARKNET_MENTION_URL", link, self.__name__, event)
self.notifyListeners(evt)
+ linkcount += 1
if linkcount > 0:
# Submit the search results for analysis elsewhere