Skip to content

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

Module names

smicallef9cdc0d2bba73
diff --git a/modules/sfp__stor_db.py b/modules/sfp__stor_db.py
index d182b617..55b3a92a 100644
--- a/modules/sfp__stor_db.py
+++ b/modules/sfp__stor_db.py
@@ -19,7 +19,7 @@ sf = None
sfdb = None
class sfp__stor_db(SpiderFootPlugin):
- """Stores scan results into the back-end SpiderFoot database. You will need this."""
+ """Storage:Stores scan results into the back-end SpiderFoot database. You will need this."""
# Default options
opts = {
diff --git a/modules/sfp_bingsearch.py b/modules/sfp_bingsearch.py
index ed9c533f..3d2d2090 100644
--- a/modules/sfp_bingsearch.py
+++ b/modules/sfp_bingsearch.py
@@ -19,7 +19,7 @@ from sflib import SpiderFoot, SpiderFootPlugin, SpiderFootEvent
sf = None
class sfp_bingsearch(SpiderFootPlugin):
- """Some light Bing scraping to identify sub-domains."""
+ """Bing:Some light Bing scraping to identify sub-domains."""
# Default options
opts = {
diff --git a/modules/sfp_dns.py b/modules/sfp_dns.py
index b8c76f51..638ba6c7 100644
--- a/modules/sfp_dns.py
+++ b/modules/sfp_dns.py
@@ -23,7 +23,7 @@ from sflib import SpiderFoot, SpiderFootPlugin, SpiderFootEvent
sf = None
class sfp_dns(SpiderFootPlugin):
- """Performs a number of DNS checks to obtain Sub-domains/Hostnames, IP Addresses and Affiliates."""
+ """DNS:Performs a number of DNS checks to obtain Sub-domains/Hostnames, IP Addresses and Affiliates."""
# Default options
opts = {
@@ -77,13 +77,19 @@ class sfp_dns(SpiderFootPlugin):
srcModuleName = event.module
eventData = event.data
addrs = None
- if eventName == "RAW_DATA":
- parentEvent = event.sourceEvent
- else:
- parentEvent = event
+ #if eventName == "RAW_DATA":
+ # parentEvent = event.sourceEvent
+ #else:
+ # parentEvent = event
+ parentEvent = event
sf.debug("Received event, " + eventName + ", from " + srcModuleName)
+ if self.subresults.has_key(eventData):
+ return None
+
+ self.subresults[eventData] = True
+
if eventName in [ "RAW_DATA", "LINKED_URL_INTERNAL" ]:
# If we've received a link or some raw data, extract potential sub-domains
# from the data for resolving later.
@@ -95,18 +101,15 @@ class sfp_dns(SpiderFootPlugin):
if match.lower().startswith("2f"):
continue
- sf.debug("Found sub-domain: " + match)
- if self.subresults.has_key(match):
- continue
- else:
- sf.info("New sub-domain/host found: " + match)
- self.subresults[match] = True
- evt = SpiderFootEvent("SUBDOMAIN", match, self.__name__, parentEvent)
- self.notifyListeners(evt)
+ sf.info("Sub-domain/host found: " + match)
+ evt = SpiderFootEvent("SUBDOMAIN", match, self.__name__, parentEvent)
+ self.notifyListeners(evt)
# Nothing left to do with internal links and raw data
return None
+ # Handling SUBDOMAIN, AFFILIATE and IP_ADDRESS events..
+
# Don't look up stuff twice
if self.results.has_key(eventData):
sf.debug("Skipping " + eventData + " as already resolved.")
@@ -143,27 +146,12 @@ class sfp_dns(SpiderFootPlugin):
sf.info("Unable to resolve " + eventData + " (" + str(e) + ")")
return None
- # Simple way to verify IPs.
- def validIP(self, address):
- parts = address.split(".")
- if parts == None:
- return False
-
- if len(parts) != 4:
- return False
- for item in parts:
- if not item.isdigit():
- return False
- if not 0 <= int(item) <= 255:
- return False
- return True
-
def processHost(self, host, parentEvent=None):
sf.info("Found host: " + host)
# If the returned hostname is on a different
# domain to baseDomain, flag it as an affiliate
if not host.lower().endswith(self.baseDomain):
- if self.validIP(host):
+ if sf.validIP(host):
type = "IP_ADDRESS"
else:
type = "AFFILIATE"
diff --git a/modules/sfp_geoip.py b/modules/sfp_geoip.py
index 47ddeb85..df8b4e83 100644
--- a/modules/sfp_geoip.py
+++ b/modules/sfp_geoip.py
@@ -20,7 +20,7 @@ from sflib import SpiderFoot, SpiderFootPlugin, SpiderFootEvent
sf = None
class sfp_geoip(SpiderFootPlugin):
- """Identifies the physical location of IP addresses identified."""
+ """GeoIP:Identifies the physical location of IP addresses identified."""
# Default options
opts = { }
diff --git a/modules/sfp_googlesearch.py b/modules/sfp_googlesearch.py
index 0ddea4fd..6b5dd6ac 100644
--- a/modules/sfp_googlesearch.py
+++ b/modules/sfp_googlesearch.py
@@ -19,7 +19,7 @@ from sflib import SpiderFoot, SpiderFootPlugin, SpiderFootEvent
sf = None
class sfp_googlesearch(SpiderFootPlugin):
- """Some light Google scraping to identify links for spidering."""
+ """Google:Some light Google scraping to identify links for spidering."""
# Default options
opts = {
diff --git a/modules/sfp_mail.py b/modules/sfp_mail.py
index d0d8b5d8..62404772 100644
--- a/modules/sfp_mail.py
+++ b/modules/sfp_mail.py
@@ -18,12 +18,12 @@ from sflib import SpiderFoot, SpiderFootPlugin, SpiderFootEvent
sf = None
class sfp_mail(SpiderFootPlugin):
- """ Identify e-mail addresses in any obtained web content."""
+ """E-Mail:Identify e-mail addresses in any obtained data."""
# Default options
opts = {
# options specific to this module
- 'includesubdomains': False, # Include e-mail addresses on sub-domains of
+ 'includesubdomains': True, # Include e-mail addresses on sub-domains of
# the target domain
'includeexternal': False # Include e-mail addrs on external domains
}
@@ -73,11 +73,7 @@ class sfp_mail(SpiderFootPlugin):
sf.debug("E-mail (or something) from somewhere else..")
continue
- if self.results.has_key(match):
- sf.debug("Already found, skipping.")
- continue
- else:
- self.results[match] = True
+ self.results[match] = True
# Include e-mail addresses on sub-domains within the domain?
if not self.opts['includesubdomains']:
diff --git a/modules/sfp_pageinfo.py b/modules/sfp_pageinfo.py
index 797d4cdc..7ee8cba9 100644
--- a/modules/sfp_pageinfo.py
+++ b/modules/sfp_pageinfo.py
@@ -30,7 +30,7 @@ regexps = dict({
})
class sfp_pageinfo(SpiderFootPlugin):
- """Obtain information about web pages (do they take passwords, do they contain forms,
+ """Page Info:Obtain information about web pages (do they take passwords, do they contain forms,
etc.)"""
# Default options
diff --git a/modules/sfp_portscan_basic.py b/modules/sfp_portscan_basic.py
index 159d57ce..2a791423 100644
--- a/modules/sfp_portscan_basic.py
+++ b/modules/sfp_portscan_basic.py
@@ -21,7 +21,7 @@ from sflib import SpiderFoot, SpiderFootPlugin, SpiderFootEvent
sf = None
class sfp_portscan_basic(SpiderFootPlugin):
- """Scans for commonly open TCP ports on Internet-facing systems."""
+ """Port Scanner:Scans for commonly open TCP ports on Internet-facing systems."""
# Default options
opts = {
@@ -122,7 +122,8 @@ class sfp_portscan_basic(SpiderFootPlugin):
for cp in resArray:
if resArray[cp]:
sf.info("TCP Port " + cp + " found to be OPEN.")
- evt = SpiderFootEvent("TCP_PORT_OPEN", cp, self.__name__, srcEvent)
+ (addr, port) = cp.split(":")
+ evt = SpiderFootEvent("TCP_PORT_OPEN", port, self.__name__, srcEvent)
self.notifyListeners(evt)
if resArray[cp] != "" and resArray[cp] != True:
bevt = SpiderFootEvent("TCP_PORT_OPEN_BANNER", resArray[cp],
diff --git a/modules/sfp_ripe.py b/modules/sfp_ripe.py
index 7b63fdc6..ad959651 100644
--- a/modules/sfp_ripe.py
+++ b/modules/sfp_ripe.py
@@ -20,7 +20,7 @@ from sflib import SpiderFoot, SpiderFootPlugin, SpiderFootEvent
sf = None
class sfp_ripe(SpiderFootPlugin):
- """Queries RIPE to identify netblocks and other info."""
+ """RIPE Query:Queries RIPE to identify netblocks and other info."""
# Default options
opts = { }
diff --git a/modules/sfp_similar.py b/modules/sfp_similar.py
index cdc996d8..193782fc 100644
--- a/modules/sfp_similar.py
+++ b/modules/sfp_similar.py
@@ -44,7 +44,7 @@ whoisIncrement = 16
sf = None
class sfp_similar(SpiderFootPlugin):
- """Search various sources to identify similar looking domain names."""
+ """Similar Domains:Search various sources to identify similar looking domain names."""
# Default options
opts = {
diff --git a/modules/sfp_social.py b/modules/sfp_social.py
index 3fc4f0cc..e4b0e51f 100644
--- a/modules/sfp_social.py
+++ b/modules/sfp_social.py
@@ -29,7 +29,7 @@ regexps = dict({
})
class sfp_social(SpiderFootPlugin):
- """Identify presence on social media networks such as LinkedIn, Twitter and others."""
+ """Social Networks:Identify presence on social media networks such as LinkedIn, Twitter and others."""
# Default options
opts = { }
diff --git a/modules/sfp_spider.py b/modules/sfp_spider.py
index e35906a8..3f4a9577 100644
--- a/modules/sfp_spider.py
+++ b/modules/sfp_spider.py
@@ -19,7 +19,7 @@ from sflib import SpiderFoot, SpiderFootPlugin, SpiderFootEvent
sf = None
class sfp_spider(SpiderFootPlugin):
- """ Spidering of web-pages to extract content for searching. Probably the most important module. """
+ """Spider:Spidering of web-pages to extract content for searching. Probably the most important module. """
# Default options
opts = {
diff --git a/modules/sfp_sslcert.py b/modules/sfp_sslcert.py
index 1a27ec98..add9ac17 100644
--- a/modules/sfp_sslcert.py
+++ b/modules/sfp_sslcert.py
@@ -20,7 +20,7 @@ from sflib import SpiderFoot, SpiderFootPlugin, SpiderFootEvent
sf = None
class sfp_sslcert(SpiderFootPlugin):
- """Gather information about SSL certificates used by the target's HTTPS sites."""
+ """SSL:Gather information about SSL certificates used by the target's HTTPS sites."""
# Default options
opts = {
diff --git a/modules/sfp_template.py b/modules/sfp_template.py
index 203bbcc6..b7abc988 100644
--- a/modules/sfp_template.py
+++ b/modules/sfp_template.py
@@ -16,7 +16,7 @@ from sflib import SpiderFoot, SpiderFootPlugin, SpiderFootEvent
sf = None
class sfp_XXX(SpiderFootPlugin):
- """Description"""
+ """Name:Description"""
# Default options
opts = { }
diff --git a/modules/sfp_webframework.py b/modules/sfp_webframework.py
index 3d6e2300..315a575e 100644
--- a/modules/sfp_webframework.py
+++ b/modules/sfp_webframework.py
@@ -28,7 +28,7 @@ regexps = dict({
})
class sfp_webframework(SpiderFootPlugin):
- """Identify the usage of popular web frameworks like jQuery, YUI and others."""
+ """Web Framework:Identify the usage of popular web frameworks like jQuery, YUI and others."""
# Default options
opts = { }
diff --git a/modules/sfp_websvr.py b/modules/sfp_websvr.py
index 2e56fa5b..0cf70120 100644
--- a/modules/sfp_websvr.py
+++ b/modules/sfp_websvr.py
@@ -18,7 +18,7 @@ from sflib import SpiderFoot, SpiderFootPlugin, SpiderFootEvent
sf = None
class sfp_websvr(SpiderFootPlugin):
- """Obtain web server banners to identify versions of web servers being used."""
+ """Web Server:Obtain web server banners to identify versions of web servers being used."""
# Default options
opts = { }
diff --git a/modules/sfp_xref.py b/modules/sfp_xref.py
index c0613e87..5f4a01d2 100644
--- a/modules/sfp_xref.py
+++ b/modules/sfp_xref.py
@@ -20,7 +20,7 @@ from sflib import SpiderFoot, SpiderFootPlugin, SpiderFootEvent
sf = None
class sfp_xref(SpiderFootPlugin):
- """Identify whether other domains are associated ('Affiliates') of the target."""
+ """Cross-Reference:Identify whether other domains are associated ('Affiliates') of the target."""
# Default options
opts = {