Skip to content

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

Cross-reference .onion sites (provided TOR is being used).

Steve83ae4c7a2a4f
diff --git a/modules/sfp_crossref.py b/modules/sfp_crossref.py
index 322e101f..e42dc972 100644
--- a/modules/sfp_crossref.py
+++ b/modules/sfp_crossref.py
@@ -44,7 +44,8 @@ class sfp_crossref(SpiderFootPlugin):
# What events is this module interested in for input
def watchedEvents(self):
- return ['LINKED_URL_EXTERNAL', 'SIMILARDOMAIN', 'CO_HOSTED_SITE']
+ return ['LINKED_URL_EXTERNAL', 'SIMILARDOMAIN',
+ 'CO_HOSTED_SITE', 'DARKNET_MENTION_URL']
# What events this module produces
# This is to support the end user in selecting modules based on events
diff --git a/modules/sfp_darksearch.py b/modules/sfp_darksearch.py
index 6f1e96eb..1e527250 100644
--- a/modules/sfp_darksearch.py
+++ b/modules/sfp_darksearch.py
@@ -94,10 +94,10 @@ class sfp_darksearch(SpiderFootPlugin):
else:
self.results.append(link)
self.sf.debug("Found a darknet mention: " + link)
- if self.sf.urlFQDN(link).endswith("onion.city"):
+ if self.sf.urlFQDN(link).endswith(".onion.city"):
if self.checkForStop():
return None
-
+ torlink = link.replace(".onion.city", ".onion")
if self.opts['fetchlinks']:
res = self.sf.fetchUrl(link, timeout=self.opts['_fetchtimeout'],
useragent=self.opts['_useragent'])
@@ -112,7 +112,7 @@ class sfp_darksearch(SpiderFootPlugin):
self.sf.debug("Ignoring " + link + " as no mention of " + eventData)
continue
- evt = SpiderFootEvent("DARKNET_MENTION_URL", link, self.__name__, event)
+ evt = SpiderFootEvent("DARKNET_MENTION_URL", torlink, self.__name__, event)
self.notifyListeners(evt)
try:
@@ -127,7 +127,7 @@ class sfp_darksearch(SpiderFootPlugin):
self.__name__, evt)
self.notifyListeners(evt)
else:
- evt = SpiderFootEvent("DARKNET_MENTION_URL", link, self.__name__, event)
+ evt = SpiderFootEvent("DARKNET_MENTION_URL", torlink, self.__name__, event)
self.notifyListeners(evt)