SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.
Python attacksurfacecticybersecurityfootprintinghackinginformation-gatheringinformation-securityinfosecintelligence-gatheringosintosint-frameworkosint-reconnaissanceosint-toolpentestingpythonreconsecurity-toolsthreat-intelligencethreatintel
Silence bandit false positive warnings
Brendan Coles1f69e5461d09
diff --git a/modules/sfp_dnsbrute.py b/modules/sfp_dnsbrute.pyindex 025bd59d..00f41a99 100644--- a/modules/sfp_dnsbrute.py+++ b/modules/sfp_dnsbrute.py@@ -103,7 +103,7 @@ class sfp_dnsbrute(SpiderFootPlugin):# Spawn threads for scanningself.sf.info("Spawning threads to check hosts: " + str(hostList))for name in hostList:- tn = 'thread_sfp_dnsbrute_' + str(random.randint(0, 999999999))+ tn = 'thread_sfp_dnsbrute_' + str(random.SystemRandom().randint(1, 999999999))t.append(threading.Thread(name=tn, target=self.tryHost, args=(name,)))t[i].start()i += 1diff --git a/modules/sfp_gravatar.py b/modules/sfp_gravatar.pyindex 0150f217..73ee0710 100644--- a/modules/sfp_gravatar.py+++ b/modules/sfp_gravatar.py@@ -53,7 +53,7 @@ class sfp_gravatar(SpiderFootPlugin):# https://secure.gravatar.com/site/implement/# https://secure.gravatar.com/site/implement/profiles/def query(self, qry):- email_hash = hashlib.md5(qry.encode('utf-8', errors='replace').lower()).hexdigest()+ email_hash = hashlib.md5(qry.encode('utf-8', errors='replace').lower()).hexdigest() # nosecoutput = 'json'res = self.sf.fetchUrl("https://secure.gravatar.com/" + email_hash + '.' + output,diff --git a/sflib.py b/sflib.pyindex be66fd8c..8331e8d2 100644--- a/sflib.py+++ b/sflib.py@@ -2314,7 +2314,9 @@ class PublicSuffixList(object):if len(parent) == 1:parent.append({})- assert len(parent) == 2+ if len(parent) != 2+ return None+negate, children = parentchild = parts.pop()diff --git a/sfwebui.py b/sfwebui.pyindex 4a7c7183..b17123ed 100644--- a/sfwebui.py+++ b/sfwebui.py@@ -43,7 +43,7 @@ class SpiderFootWebUi:sf = SpiderFoot(self.defaultConfig)self.config = sf.configUnserialize(dbh.configGet(), self.defaultConfig)- if self.config['__webaddr'] == "0.0.0.0":+ if self.config['__webaddr'] == "0.0.0.0": # nosecaddr = "<IP of this host>"else:addr = self.config['__webaddr']