Skip to content

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

Bug fixes.

smicallef6679d1ac2989
diff --git a/modules/sfp__stor_stdout.py b/modules/sfp__stor_stdout.py
index 6b63067c..d6cb13dc 100644
--- a/modules/sfp__stor_stdout.py
+++ b/modules/sfp__stor_stdout.py
@@ -16,6 +16,7 @@ import json
class sfp__stor_stdout(SpiderFootPlugin):
"""Command-line output::::Dumps output to standard out. Used for when a SpiderFoot scan is run via the command-line."""
+ _priority = 0
# Default options
opts = {
diff --git a/modules/sfp_accounts.py b/modules/sfp_accounts.py
index 5dbd4f0d..07336c90 100644
--- a/modules/sfp_accounts.py
+++ b/modules/sfp_accounts.py
@@ -128,11 +128,12 @@ class sfp_accounts(SpiderFootPlugin):
if site['account_missing_string'] in res['content']:
found = False
except BaseException:
- #self.sf.debug("Error parsing configuration: " + str(site))
+ self.sf.debug("Error parsing configuration: " + str(site))
found = False
if found and self.opts['musthavename']:
if name not in res['content']:
+ self.sf.debug("Skipping " + site['name'] + " as username not mentioned.")
found = False
# Some sites can't handle periods so treat bob.abc and bob as the same
@@ -185,6 +186,7 @@ class sfp_accounts(SpiderFootPlugin):
for site in self.sites:
if not site['valid'] or 'check_uri' not in site:
+ self.sf.debug("Skipping " + site['name'])
continue
if i >= self.opts['_maxthreads']:
data = self.threadSites(name, siteList)
diff --git a/sflib.py b/sflib.py
index 7f4d6193..778d6b0c 100644
--- a/sflib.py
+++ b/sflib.py
@@ -1430,7 +1430,12 @@ class SpiderFoot:
if dontMangle:
result['content'] = res.content
else:
- result['content'] = res.content.decode("utf-8")
+ try:
+ result['content'] = res.content.decode("utf-8")
+ except UnicodeDecodeError as e:
+ result['content'] = res.content.decode("latin-1")
+ except UnicodeDecodeError as e2:
+ result['content'] = res.content.decode("ascii")
if fatal:
res.raise_for_status()
except requests.exceptions.HTTPError as h:
diff --git a/sfwebui.py b/sfwebui.py
index eb738ddf..b7ce0900 100644
--- a/sfwebui.py
+++ b/sfwebui.py
@@ -336,6 +336,7 @@ class SpiderFootWebUi:
return self.error("Something went wrong internally.")
modlist = scanconfig['_modulesenabled'].split(',')
+ modlist.remove("sfp__stor_stdout")
targetType = sf.targetType(scantarget)
if targetType == None:
@@ -382,6 +383,7 @@ class SpiderFootWebUi:
return self.error("Something went wrong internally.")
modlist = scanconfig['_modulesenabled'].split(',')
+ modlist.remove("sfp__stor_stdout")
targetType = sf.targetType(scantarget)
if targetType == None:
@@ -808,6 +810,8 @@ class SpiderFootWebUi:
else:
return json.dumps(["ERROR", "Unrecognised target type."])
+ # Delete the stdout module in case it crept in
+ modlist.remove("sfp__stor_stdout")
# Start running a new scan
scanId = sf.genScanInstanceGUID(scanname)