Skip to content

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

Method to return what events are produced by each module.

smicallefec3d7930abe8
diff --git a/modules/sfp_affilinfo.py b/modules/sfp_affilinfo.py
index 03d332b1..978943a0 100644
--- a/modules/sfp_affilinfo.py
+++ b/modules/sfp_affilinfo.py
@@ -49,6 +49,12 @@ class sfp_affilinfo(SpiderFootPlugin):
def watchedEvents(self):
return ["AFFILIATE"]
+ # What events this module produces
+ # This is to support the end user in selecting modules based on events
+ # produced.
+ def producedEvents(self):
+ return [ "AFFILIATE_DOMAIN", "AFFILIATE_IPADDR" ]
+
# Handle events sent to this module
def handleEvent(self, event):
eventName = event.eventType
diff --git a/modules/sfp_bingsearch.py b/modules/sfp_bingsearch.py
index 3d2d2090..c770ab0d 100644
--- a/modules/sfp_bingsearch.py
+++ b/modules/sfp_bingsearch.py
@@ -51,6 +51,12 @@ class sfp_bingsearch(SpiderFootPlugin):
def watchedEvents(self):
return None
+ # What events this module produces
+ # This is to support the end user in selecting modules based on events
+ # produced.
+ def producedEvents(self):
+ return [ "LINKED_URL_INTERNAL" ]
+
# Scrape Bing for content, starting at startUrl and iterating through
# results based on options supplied. Will return a dictionary of all pages
# fetched and their contents {page => content}.
diff --git a/modules/sfp_dns.py b/modules/sfp_dns.py
index 638ba6c7..bd20497f 100644
--- a/modules/sfp_dns.py
+++ b/modules/sfp_dns.py
@@ -71,6 +71,13 @@ class sfp_dns(SpiderFootPlugin):
arr.append('IP_ADDRESS')
return arr
+ # What events this module produces
+ # This is to support the end user in selecting modules based on events
+ # produced.
+ def producedEvents(self):
+ return [ "IP_ADDRESS", "SUBDOMAIN", "PROVIDER_MAIL",
+ "PROVIDER_DNS", "AFFILIATE" ]
+
# Handle events sent to this module
def handleEvent(self, event):
eventName = event.eventType
diff --git a/modules/sfp_geoip.py b/modules/sfp_geoip.py
index df8b4e83..754378d9 100644
--- a/modules/sfp_geoip.py
+++ b/modules/sfp_geoip.py
@@ -43,6 +43,12 @@ class sfp_geoip(SpiderFootPlugin):
def watchedEvents(self):
return ['IP_ADDRESS']
+ # What events this module produces
+ # This is to support the end user in selecting modules based on events
+ # produced.
+ def producedEvents(self):
+ return [ "GEOINFO" ]
+
# Handle events sent to this module
def handleEvent(self, event):
eventName = event.eventType
diff --git a/modules/sfp_googlesearch.py b/modules/sfp_googlesearch.py
index 6b5dd6ac..79cce874 100644
--- a/modules/sfp_googlesearch.py
+++ b/modules/sfp_googlesearch.py
@@ -51,6 +51,12 @@ class sfp_googlesearch(SpiderFootPlugin):
def watchedEvents(self):
return None
+ # What events this module produces
+ # This is to support the end user in selecting modules based on events
+ # produced.
+ def producedEvents(self):
+ return [ "LINKED_URL_INTERNAL" ]
+
# Scrape Google for content, starting at startUrl and iterating through
# results based on options supplied. Will return a dictionary of all pages
# fetched and their contents {page => content}.
diff --git a/modules/sfp_mail.py b/modules/sfp_mail.py
index 62404772..623ec052 100644
--- a/modules/sfp_mail.py
+++ b/modules/sfp_mail.py
@@ -52,6 +52,12 @@ class sfp_mail(SpiderFootPlugin):
def watchedEvents(self):
return ["RAW_DATA"]
+ # What events this module produces
+ # This is to support the end user in selecting modules based on events
+ # produced.
+ def producedEvents(self):
+ return [ "EMAILADDR" ]
+
# Handle events sent to this module
def handleEvent(self, event):
eventName = event.eventType
diff --git a/modules/sfp_pageinfo.py b/modules/sfp_pageinfo.py
index 7ee8cba9..410fda3e 100644
--- a/modules/sfp_pageinfo.py
+++ b/modules/sfp_pageinfo.py
@@ -54,6 +54,13 @@ etc.)"""
def watchedEvents(self):
return ["RAW_DATA"]
+ # What events this module produces
+ # This is to support the end user in selecting modules based on events
+ # produced.
+ def producedEvents(self):
+ return [ "URL_STATIC", "URL_JAVASCRIPT", "URL_FORM", "URL_PASSWORD",
+ "URL_UPLOAD", "URL_JAVA_APPLET", "URL_FLASH", "PROVIDER_JAVASCRIPT" ]
+
# Handle events sent to this module
def handleEvent(self, event):
# We are only interested in the raw data from the spidering module
diff --git a/modules/sfp_portscan_basic.py b/modules/sfp_portscan_basic.py
index 2a791423..ecc68e17 100644
--- a/modules/sfp_portscan_basic.py
+++ b/modules/sfp_portscan_basic.py
@@ -76,6 +76,12 @@ class sfp_portscan_basic(SpiderFootPlugin):
def watchedEvents(self):
return ['IP_ADDRESS']
+ # What events this module produces
+ # This is to support the end user in selecting modules based on events
+ # produced.
+ def producedEvents(self):
+ return [ "TCP_PORT_OPEN", "TCP_PORT_OPEN_BANNER" ]
+
def tryPort(self, ip, port):
try:
sock = socket.create_connection((ip, port), self.opts['timeout'])
diff --git a/modules/sfp_ripe.py b/modules/sfp_ripe.py
index ad959651..211ecf32 100644
--- a/modules/sfp_ripe.py
+++ b/modules/sfp_ripe.py
@@ -43,6 +43,12 @@ class sfp_ripe(SpiderFootPlugin):
def watchedEvents(self):
return ['IP_ADDRESS', 'SUBDOMAIN']
+ # What events this module produces
+ # This is to support the end user in selecting modules based on events
+ # produced.
+ def producedEvents(self):
+ return [ "AFFILIATE", "NETBLOCK" ]
+
# Handle events sent to this module
def handleEvent(self, event):
eventName = event.eventType
diff --git a/modules/sfp_searchtld.py b/modules/sfp_searchtld.py
index 15d8ba96..346f4bd9 100644
--- a/modules/sfp_searchtld.py
+++ b/modules/sfp_searchtld.py
@@ -62,6 +62,12 @@ class sfp_searchtld(SpiderFootPlugin):
def watchedEvents(self):
return None
+ # What events this module produces
+ # This is to support the end user in selecting modules based on events
+ # produced.
+ def producedEvents(self):
+ return [ "SIMILARDOMAIN" ]
+
def tryTld(self, target):
try:
addrs = socket.gethostbyname_ex(target)
diff --git a/modules/sfp_similar.py b/modules/sfp_similar.py
index 193782fc..4236fde7 100644
--- a/modules/sfp_similar.py
+++ b/modules/sfp_similar.py
@@ -86,6 +86,12 @@ class sfp_similar(SpiderFootPlugin):
def watchedEvents(self):
return None
+ # What events this module produces
+ # This is to support the end user in selecting modules based on events
+ # produced.
+ def producedEvents(self):
+ return [ "SIMILARDOMAIN" ]
+
# Fetch and loop through Whois.com results, updating our results data. Stop
# once we've reached the end.
def scrapeWhois(self, keyword):
diff --git a/modules/sfp_social.py b/modules/sfp_social.py
index e4b0e51f..ef550ace 100644
--- a/modules/sfp_social.py
+++ b/modules/sfp_social.py
@@ -60,6 +60,12 @@ class sfp_social(SpiderFootPlugin):
def watchedEvents(self):
return ["LINKED_URL_EXTERNAL"]
+ # What events this module produces
+ # This is to support the end user in selecting modules based on events
+ # produced.
+ def producedEvents(self):
+ return [ "SOCIAL_MEDIA" ]
+
# Handle events sent to this module
def handleEvent(self, event):
eventName = event.eventType
diff --git a/modules/sfp_spider.py b/modules/sfp_spider.py
index 3f4a9577..08b04033 100644
--- a/modules/sfp_spider.py
+++ b/modules/sfp_spider.py
@@ -201,6 +201,13 @@ class sfp_spider(SpiderFootPlugin):
def watchedEvents(self):
return [ "LINKED_URL_INTERNAL", "SUBDOMAIN" ]
+ # What events this module produces
+ # This is to support the end user in selecting modules based on events
+ # produced.
+ def producedEvents(self):
+ return [ "WEBSERVER_HTTPHEADERS", "HTTP_CODE", "LINKED_URL_INTERNAL",
+ "LINKED_URL_EXTERNAL" ]
+
# Some other modules may request we spider things
def handleEvent(self, event):
eventName = event.eventType
diff --git a/modules/sfp_sslcert.py b/modules/sfp_sslcert.py
index add9ac17..01338a35 100644
--- a/modules/sfp_sslcert.py
+++ b/modules/sfp_sslcert.py
@@ -61,6 +61,14 @@ class sfp_sslcert(SpiderFootPlugin):
def watchedEvents(self):
return ["SUBDOMAIN", "LINKED_URL_INTERNAL"]
+ # What events this module produces
+ # This is to support the end user in selecting modules based on events
+ # produced.
+ def producedEvents(self):
+ return [ "SSL_CERTIFICATE_ISSUED", "SSL_CERTIFICATE_ISSUER",
+ "SSL_CERTIFICATE_MISMATCH", "SSL_CERTIFICATE_EXPIRED",
+ "SSL_CERTIFICATE_EXPIRING" ]
+
# Handle events sent to this module
def handleEvent(self, event):
eventName = event.eventType
diff --git a/modules/sfp_template.py b/modules/sfp_template.py
index b7abc988..17fc7f20 100644
--- a/modules/sfp_template.py
+++ b/modules/sfp_template.py
@@ -53,6 +53,12 @@ class sfp_XXX(SpiderFootPlugin):
def watchedEvents(self):
return ["*"]
+ # What events this module produces
+ # This is to support the end user in selecting modules based on events
+ # produced.
+ def producedEvents(self):
+ return None
+
# Handle events sent to this module
def handleEvent(self, event):
eventName = event.eventType
diff --git a/modules/sfp_webframework.py b/modules/sfp_webframework.py
index 315a575e..52dd6546 100644
--- a/modules/sfp_webframework.py
+++ b/modules/sfp_webframework.py
@@ -59,6 +59,12 @@ class sfp_webframework(SpiderFootPlugin):
def watchedEvents(self):
return ["RAW_DATA"]
+ # What events this module produces
+ # This is to support the end user in selecting modules based on events
+ # produced.
+ def producedEvents(self):
+ return [ "URL_JAVASCRIPT_FRAMEWORK" ]
+
# Handle events sent to this module
def handleEvent(self, event):
eventName = event.eventType
diff --git a/modules/sfp_websvr.py b/modules/sfp_websvr.py
index 0cf70120..6b565c79 100644
--- a/modules/sfp_websvr.py
+++ b/modules/sfp_websvr.py
@@ -41,6 +41,12 @@ class sfp_websvr(SpiderFootPlugin):
def watchedEvents(self):
return ["WEBSERVER_HTTPHEADERS"]
+ # What events this module produces
+ # This is to support the end user in selecting modules based on events
+ # produced.
+ def producedEvents(self):
+ return [ "WEBSERVER_BANNER", "WEBSERVER_TECHNOLOGY" ]
+
# Handle events sent to this module
def handleEvent(self, event):
eventName = event.eventType
diff --git a/modules/sfp_xref.py b/modules/sfp_xref.py
index 5f4a01d2..721b9c1c 100644
--- a/modules/sfp_xref.py
+++ b/modules/sfp_xref.py
@@ -61,6 +61,12 @@ class sfp_xref(SpiderFootPlugin):
def watchedEvents(self):
return ['LINKED_URL_EXTERNAL', 'SIMILARDOMAIN']
+ # What events this module produces
+ # This is to support the end user in selecting modules based on events
+ # produced.
+ def producedEvents(self):
+ return [ "AFFILIATE" ]
+
# Handle events sent to this module
# In this module's case, eventData will be the URL or a domain which
# was found in some content somewhere.