Skip to content

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

Renames

smicallefdd47127c9b88
diff --git a/modules/sfp_bingsearch.py b/modules/sfp_bingsearch.py
index e32520e9..36a065a2 100644
--- a/modules/sfp_bingsearch.py
+++ b/modules/sfp_bingsearch.py
@@ -76,6 +76,10 @@ class sfp_bingsearch(SpiderFootPlugin):
results = self.bingIterate("ip:" + eventData, { "limit": 100 })
myres = list()
+ if results == None:
+ sf.info("No data returned from Bing.")
+ return None
+
for key in results.keys():
res = results[key]
matches = re.findall("<div class=\"sb_meta\"><cite>(\S+)</cite>",
diff --git a/modules/sfp_crossref.py b/modules/sfp_crossref.py
index 0dce6be9..bd32ae89 100644
--- a/modules/sfp_crossref.py
+++ b/modules/sfp_crossref.py
@@ -1,5 +1,5 @@
#-------------------------------------------------------------------------------
-# Name: sfp_xref
+# Name: sfp_crossref
# Purpose: SpiderFoot plug-in for scanning links identified from the
# spidering process, and for external links, fetching them to
# see if those sites link back to the original site, indicating a
@@ -19,15 +19,15 @@ from sflib import SpiderFoot, SpiderFootPlugin, SpiderFootEvent
# SpiderFoot standard lib (must be initialized in setup)
sf = None
-class sfp_xref(SpiderFootPlugin):
+class sfp_crossref(SpiderFootPlugin):
"""Cross-Reference:Identify whether other domains are associated ('Affiliates') of the target."""
# Default options
opts = {
'forcebase': True, # Check the base URL for a link back to the seed
- # domain in order to be considered a valid xref
+ # domain in order to be considered a valid crossref
'checkbase': True, # Only check the base URL for a relationship if
- # the link provided contains no xref
+ # the link provided contains no crossref
'checkcontent': True # Submit affiliate content for other modules to
# analyze
}
@@ -81,7 +81,7 @@ class sfp_xref(SpiderFootPlugin):
if eventName == 'SIMILARDOMAIN':
eventData = 'http://'+ eventData.lower()
- # We are only interested in external sites for the xref
+ # We are only interested in external sites for the crossref
if sf.urlBaseUrl(eventData).endswith(self.baseDomain):
sf.debug("Ignoring " + eventData + " as not external")
return None
@@ -111,7 +111,7 @@ class sfp_xref(SpiderFootPlugin):
res['content'], re.IGNORECASE)
# If the domain wasn't found in the affiliate, and checkbase is set,
- # fetch the base URL of the affiliate to check for a xref. Don't bother
+ # fetch the base URL of the affiliate to check for a crossref. Don't bother
# if forcebase was set, as we would've already checked that anyway.
if not self.opts['forcebase'] and len(matches) > 0 and self.opts['checkbase']:
# Check the base url to see if there is an affiliation
@@ -138,4 +138,4 @@ class sfp_xref(SpiderFootPlugin):
return None
-# End of sfp_xref class
+# End of sfp_crossref class
diff --git a/modules/sfp_ir.py b/modules/sfp_ir.py
index 73e97610..d0fbb90b 100644
--- a/modules/sfp_ir.py
+++ b/modules/sfp_ir.py
@@ -1,5 +1,5 @@
#-------------------------------------------------------------------------------
-# Name: sfp_rir
+# Name: sfp_ir
# Purpose: Queries Internet registryes like RIPE and ARIN to get netblocks
# and other bits of info.
#
@@ -19,7 +19,7 @@ from sflib import SpiderFoot, SpiderFootPlugin, SpiderFootEvent
# SpiderFoot standard lib (must be initialized in setup)
sf = None
-class sfp_rir(SpiderFootPlugin):
+class sfp_ir(SpiderFootPlugin):
"""Internet Registries:Queries RIPE and ARIN to identify netblocks and other info."""
# Default options
@@ -238,4 +238,4 @@ class sfp_rir(SpiderFootPlugin):
return None
-# End of sfp_rir class
+# End of sfp_ir class
diff --git a/modules/sfp_malcheck.py b/modules/sfp_malcheck.py
index 7c13897b..416f6e98 100644
--- a/modules/sfp_malcheck.py
+++ b/modules/sfp_malcheck.py
@@ -81,7 +81,7 @@ malchecks = {
}
class sfp_malcheck(SpiderFootPlugin):
- """Malicious:Check if a website, IP or ASN is considered malicious by various sources."""
+ """Malicious Check:Check if a website, IP or ASN is considered malicious by various sources."""
# Default options
opts = {
@@ -271,6 +271,8 @@ class sfp_malcheck(SpiderFootPlugin):
evtType = 'MALICIOUS_COHOST'
info = self.lookupItem(cid, typeId, eventData)
+ if self.checkForStop():
+ return None
# Notify other modules of what you've found
if info[1] == True:
diff --git a/modules/sfp_tldsearch.py b/modules/sfp_tldsearch.py
index 346f4bd9..ccec4f5e 100644
--- a/modules/sfp_tldsearch.py
+++ b/modules/sfp_tldsearch.py
@@ -1,5 +1,5 @@
#-------------------------------------------------------------------------------
-# Name: sfp_searchtld
+# Name: sfp_tldsearch
# Purpose: SpiderFoot plug-in for identifying the existence of this target
# on other TLDs.
#
@@ -22,7 +22,7 @@ from sflib import SpiderFoot, SpiderFootPlugin, SpiderFootEvent
# SpiderFoot standard lib (must be initialized in setup)
sf = None
-class sfp_searchtld(SpiderFootPlugin):
+class sfp_tldsearch(SpiderFootPlugin):
"""TLD Search:Search all Internet TLDs for domains with the same name as the target."""
# Default options
@@ -84,7 +84,7 @@ class sfp_searchtld(SpiderFootPlugin):
# Spawn threads for scanning
sf.info("Spawning threads to check TLDs: " + str(tldList))
for tld in tldList:
- t.append(threading.Thread(name='sfp_searchtld_' + tld,
+ t.append(threading.Thread(name='sfp_tldsearch_' + tld,
target=self.tryTld, args=(tld,)))
t[i].start()
i += 1
@@ -93,7 +93,7 @@ class sfp_searchtld(SpiderFootPlugin):
while running:
found = False
for rt in threading.enumerate():
- if rt.name.startswith("sfp_searchtld_"):
+ if rt.name.startswith("sfp_tldsearch_"):
found = True
if not found:
@@ -164,4 +164,4 @@ class sfp_searchtld(SpiderFootPlugin):
return None
-# End of sfp_searchtld class
+# End of sfp_tldsearch class