SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.
Python attacksurfacecticybersecurityfootprintinghackinginformation-gatheringinformation-securityinfosecintelligence-gatheringosintosint-frameworkosint-reconnaissanceosint-toolpentestingpythonreconsecurity-toolsthreat-intelligencethreatintel
sfwebui: Use scan name for JSON export filename
bcoles42b57488a50c
diff --git a/sfwebui.py b/sfwebui.pyindex 8a23b679..b54b628d 100644--- a/sfwebui.py+++ b/sfwebui.py@@ -205,6 +205,7 @@ class SpiderFootWebUi:def scanexportjsonmulti(self, ids):dbh = SpiderFootDb(self.config)scaninfo = list()+ scan_name = ""for id in ids.split(','):scan = dbh.scanInstanceGet(id)@@ -236,7 +237,12 @@ class SpiderFootWebUi:"scan_target": scan[1]})- cherrypy.response.headers['Content-Disposition'] = "attachment; filename=SpiderFoot.json"+ if len(ids.split(',')) > 1 or scan_name == "":+ fname = "SpiderFoot.json"+ else:+ fname = scan_name + "-SpiderFoot.json"++ cherrypy.response.headers['Content-Disposition'] = "attachment; filename=" + fnamecherrypy.response.headers['Content-Type'] = "application/json; charset=utf-8"cherrypy.response.headers['Pragma'] = "no-cache"return json.dumps(scaninfo).encode("utf-8")