SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.
Python attacksurfacecticybersecurityfootprintinghackinginformation-gatheringinformation-securityinfosecintelligence-gatheringosintosint-frameworkosint-reconnaissanceosint-toolpentestingpythonreconsecurity-toolsthreat-intelligencethreatintel
Fixed export issue by using BytesIO instead of StringIO, to handle Unicode output.
smicallef41c8ea206d00
diff --git a/sfwebui.py b/sfwebui.pyindex dd53d585..11508cf4 100644--- a/sfwebui.py+++ b/sfwebui.py@@ -23,7 +23,7 @@ from mako.template import Templatefrom sfdb import SpiderFootDbfrom sflib import SpiderFoot, globalScanStatusfrom sfscan import SpiderFootScanner-from io import StringIO+from io import BytesIOclass SpiderFootWebUi:@@ -122,7 +122,7 @@ class SpiderFootWebUi:def scaneventresultexport(self, id, type, dialect="excel"):dbh = SpiderFootDb(self.config)data = dbh.scanResultEvent(id, type)- fileobj = StringIO()+ fileobj = BytesIO()parser = csv.writer(fileobj, dialect=dialect)parser.writerow(["Updated", "Type", "Module", "Source", "F/P", "Data"])for row in data:@@ -147,7 +147,7 @@ class SpiderFootWebUi:scaninfo[id] = dbh.scanInstanceGet(id)data = data + dbh.scanResultEvent(id)- fileobj = StringIO()+ fileobj = BytesIO()parser = csv.writer(fileobj, dialect=dialect)parser.writerow(["Scan Name", "Updated", "Type", "Module", "Source", "F/P", "Data"])for row in data:@@ -167,7 +167,7 @@ class SpiderFootWebUi:# Get search result data in CSV formatdef scansearchresultexport(self, id, eventType=None, value=None, dialect="excel"):data = self.searchBase(id, eventType, value)- fileobj = StringIO()+ fileobj = BytesIO()parser = csv.writer(fileobj, dialect=dialect)parser.writerow(["Updated", "Type", "Module", "Source", "F/P", "Data"])for row in data: