SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.
Python attacksurfacecticybersecurityfootprintinghackinginformation-gatheringinformation-securityinfosecintelligence-gatheringosintosint-frameworkosint-reconnaissanceosint-toolpentestingpythonreconsecurity-toolsthreat-intelligencethreatintel
Consistent JSON export format with HX.
smicallef7ca76e2f4111
diff --git a/sfwebui.py b/sfwebui.pyindex a26afd09..f8cab006 100644--- a/sfwebui.py+++ b/sfwebui.py@@ -195,7 +195,7 @@ class SpiderFootWebUi:# Export results from multiple scans in JSON formatdef scanexportjsonmulti(self, ids):dbh = SpiderFootDb(self.config)- scaninfo = dict()+ scaninfo = list()for id in ids.split(','):scan = dbh.scanInstanceGet(id)@@ -205,9 +205,6 @@ class SpiderFootWebUi:scan_name = scan[0]- if scan_name not in scaninfo:- scaninfo[scan_name] = []-for row in dbh.scanResultEvent(id):lastseen = time.strftime("%Y-%m-%d %H:%M:%S", time.localtime(row[0]))event_data = str(row[1]).replace("<SFURL>", "").replace("</SFURL>", "")@@ -219,13 +216,14 @@ class SpiderFootWebUi:if event_type == "ROOT":continue- scaninfo[scan_name].append({+ scaninfo.append({"data": event_data,- "type": event_type,- "source_module": source_module,+ "event_type": event_type,+ "module": source_module,"source_data": source_data,"false_positive": false_positive,- "lastseen": lastseen+ "last_seen": lastseen,+ "scan_name": scan_name})cherrypy.response.headers['Content-Disposition'] = "attachment; filename=SpiderFoot.json"