SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.
Python attacksurfacecticybersecurityfootprintinghackinginformation-gatheringinformation-securityinfosecintelligence-gatheringosintosint-frameworkosint-reconnaissanceosint-toolpentestingpythonreconsecurity-toolsthreat-intelligencethreatintel
Fixed unicode handling bug.
smicallefe41203096b09
diff --git a/sflib.py b/sflib.pyindex c0538b51..f2836662 100644--- a/sflib.py+++ b/sflib.py@@ -435,7 +435,7 @@ class SpiderFoot:fullPage = urllib2.urlopen(req, None, self.opts['_fetchtimeout'])# Prepare result to return- result['content'] = unicode(fullPage.read(), 'ascii', errors='ignore')+ result['content'] = unicode(fullPage.read(), 'utf-8', errors='replace')result['headers'] = fullPage.info()#print "FOR: " + url#print "HEADERS: " + str(result['headers'])@@ -589,12 +589,12 @@ class SpiderFootEvent(object):# Handle lists and dictsif type(self.data) not in [str, unicode]:- usedata = str(self.data)- else:- usedata = self.data+ idString = unicode(self.eventType + str(self.data) + str(self.generated) + self.module, 'utf-8', errors='replace')+ else:+ idString = self.eventType + self.data + str(self.generated) + self.module- return hashlib.sha256(self.eventType + usedata + \- unicode(self.generated) + self.module).hexdigest()+ digestStr = idString.encode('raw_unicode_escape')+ return hashlib.sha256(digestStr).hexdigest()# Reduce data down to a certain sizedef truncateData(self, size):