SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.
Python attacksurfacecticybersecurityfootprintinghackinginformation-gatheringinformation-securityinfosecintelligence-gatheringosintosint-frameworkosint-reconnaissanceosint-toolpentestingpythonreconsecurity-toolsthreat-intelligencethreatintel
Updated logo, file exporting.
smicallef900e4b716c56
diff --git a/dyn/HEADER.tmpl b/dyn/HEADER.tmplindex 3671542d..6ff7014c 100644--- a/dyn/HEADER.tmpl+++ b/dyn/HEADER.tmpl@@ -26,7 +26,7 @@color: #777777;text-shadow: 0 1px 0 #ffffff;background: url(static/img/spiderfoot.png) no-repeat center center;- background-size: 32px 32px;+ background-size: 38px 38px;height: 20px;width: 20px;}diff --git a/dyn/scaninfo.tmpl b/dyn/scaninfo.tmplindex 44867d9c..f8215acc 100644--- a/dyn/scaninfo.tmpl+++ b/dyn/scaninfo.tmpl@@ -4,11 +4,13 @@<div class="btn-group"><a id='btn-browse' class="btn active" href="#" onClick='browseEventList("${id}")'>Browse</a><a id='btn-info' class="btn" href="#" onClick='viewScanConfig("${id}")'>Scan Info</a>- <a id='btn-export' class="btn" href="#">Export</a>+ <a id='btn-export' class="btn" href="#" onClick='exportEventData("${id}", currentType)'>Export</a></div></div><script type='text/javascript'>+ var currentType = "ALL";+function navTo(target) {var targets = [ "btn-browse", "btn-info", "btn-export" ]for (var i = 0; i < targets.length; i++) {@@ -22,6 +24,8 @@// Summary of event types and counts for a scanfunction browseEventList(instanceId) {+ currentType = "ALL";+// Remove pre-existing tables if they exist$("#scansummary-content").remove();navTo("btn-browse");@@ -47,11 +51,14 @@$("#scansummary-content").remove();$("#loader").show();navTo("btn-browse");+ currentType = eventType;sf.fetchData('/scaneventresults', {'id': instanceId, 'eventType': eventType }, function(data) {var table = "<table id='scansummary-content' class='table table-bordered table-striped small'>";- table += "<thead><tr> <th>Data Element</th><th>Obtained</th><th>Source</th><th>Module</th></tr></thead><tbody>";+ table += "<thead><tr> <th>Data Element</th><th>Source</th></tr></thead><tbody>";for (var i = 0; i < data.length; i++) {- table += "<tr><td width=50%><pre>" + data[i][1] + "</pre></td><td>" + data[i][0] + "</td><td>" + data[i][2] + "</td><td>" + data[i][3] + "</td></tr>";+ table += "<tr><td width=50%><pre style='border: 0px; background-color: inherit'>" + data[i][1];+ table += "</pre></td><td><pre style='border: 0px; background-color: inherit'>" + data[i][2];+ table += "</pre></td></tr>";}table += "</tbody></table>"$("#loader").fadeOut(500);@@ -59,6 +66,14 @@});}+ // Download the data currently being viewed+ function exportEventData(instanceId, eventType) {+ $("#loader").show();+ var efr = document.getElementById('exportframe');+ efr.src = '/scaneventresultexport?id=' + instanceId + '&eventType=' + eventType;+ $("#loader").fadeOut(500);+ }+// View the configuration that was used for this scanfunction viewScanConfig(instanceId) {$("#scansummary-content").remove();@@ -103,4 +118,5 @@browseEventList("${id}");</script>+<iframe style='display: none' id='exportframe'><%include file="FOOTER.tmpl"/>diff --git a/sfwebui.py b/sfwebui.pyindex 2c8cfc1a..558411a1 100644--- a/sfwebui.py+++ b/sfwebui.py@@ -172,6 +172,22 @@ class SpiderFootWebUi:# DATA PROVIDERS (need to migrate all the ones from SpiderFootDataProvider# to here)+ # Get result data in CSV format+ def scaneventresultexport(self, id, type):+ dbh = SpiderFootDb(self.config)+ data = dbh.scanResultEvent(id, type)+ blob = "\"Updated\",\"Source\",\"Module\",\"Data\"\n"+ for row in data:+ lastseen = time.strftime("%d/%m/%Y %H:%M:%S", time.localtime(row[0]))+ escaped = cgi.escape(row[1].replace("\n", "<LB>").replace("\r", "<LB>"))+ blob = blob + "\"" + lastseen + "\",\"" + row[2] + "\",\"" + row[3]+ blob = blob + "\",\"" + escaped + "\"\n"+ cherrypy.response.headers['Content-Disposition'] = "attachment; filename=SpiderFoot.csv"+ cherrypy.response.headers['Content-Type'] = "application/csv"+ cherrypy.response.headers['Pragma'] = "no-cache"+ return blob+ scaneventresultexport.exposed = True+# Configuration used for a scandef scanopts(self, id):ret = dict()diff --git a/static/img/spiderfoot-icon.png b/static/img/spiderfoot-icon.pngindex 5826e14f..11cc6b5c 100644Binary files a/static/img/spiderfoot-icon.png and b/static/img/spiderfoot-icon.png differdiff --git a/static/img/spiderfoot.png b/static/img/spiderfoot.pngindex 3330c034..67b2690f 100644Binary files a/static/img/spiderfoot.png and b/static/img/spiderfoot.png differ