SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.
Python attacksurfacecticybersecurityfootprintinghackinginformation-gatheringinformation-securityinfosecintelligence-gatheringosintosint-frameworkosint-reconnaissanceosint-toolpentestingpythonreconsecurity-toolsthreat-intelligencethreatintel
sfwebui: clear scan summary refresh interval when scan is complete
Brendan Coles02910d577b0c
diff --git a/dyn/scaninfo.tmpl b/dyn/scaninfo.tmplindex 166689c0..02082755 100644--- a/dyn/scaninfo.tmpl+++ b/dyn/scaninfo.tmpl@@ -721,13 +721,25 @@});}- if ("${status}" == "RUNNING" || "${status}" == "STARTING" || "${status}" == "STARTED" || "${status}" == "UNKNOWN" || "${status}" == "INITIALIZING") {+ if ("${status}" == "CREATED" || "${status}" == "RUNNING" || "${status}" == "STARTING" || "${status}" == "STARTED" || "${status}" == "UNKNOWN" || "${status}" == "INITIALIZING") {scanSummaryView("${id}");} else {browseEventList("${id}");}- setInterval(function() {+ var refreshSummaryInterval;++ refreshSummary = function() {+ var status = document.getElementById("scanstatusbadge").innerHTML;++ if (status == "ERROR-FAILED" || status == "FINISHED" || status == "ABORTED") {+ console.log("Scan is " + status);+ clearInterval(refreshSummaryInterval);+ return;+ }++ console.log("Scan is " + status + ". Refreshing scan summary ...");+for (var i = 0; i < dataloaders.length; i++) {if (!loadersrunning) {loadersrunning = true;@@ -735,7 +747,9 @@loadersrunning = false;}}- }, 5000);+ }++ refreshSummaryInterval = setInterval(refreshSummary, 5000);</script><iframe class="hidden" id='exportframe'>