SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.
Python attacksurfacecticybersecurityfootprintinghackinginformation-gatheringinformation-securityinfosecintelligence-gatheringosintosint-frameworkosint-reconnaissanceosint-toolpentestingpythonreconsecurity-toolsthreat-intelligencethreatintel
Deleting failed scans
smicallefbbb485446150
diff --git a/dyn/scandelete.tmpl b/dyn/scandelete.tmplindex 0e418c7e..00a934b6 100644--- a/dyn/scandelete.tmpl+++ b/dyn/scandelete.tmpl@@ -1,5 +1,5 @@<%include file="HEADER.tmpl"/>-<div class="alert alert-warning">+<div class="alert alert-error"><h4>Confirm Deletion</h4><br><br>Please confirm you wish to delete the scan '${name}'<br><br>diff --git a/sfwebui.py b/sfwebui.pyindex 62392b34..aa83504d 100644--- a/sfwebui.py+++ b/sfwebui.py@@ -139,6 +139,7 @@ class SpiderFootDataProvider:print "Scan [" + sfConfig['__guid__'] + "] failed."dbh.scanInstanceSet(sfConfig['__guid__'], None, time.time() * 1000, 'ERROR-FAILED')+ self.moduleInstances = Nonedbh.close()class SpiderFootWebUi:@@ -244,6 +245,9 @@ class SpiderFootWebUi:# Stop a scan (id variable is unnecessary for now given that only one simultaneous# scan is permitted.)def stopscan(self, id):+ if self.dp.moduleInstances == None:+ return self.error("There are no scans running. A data consistency error for this scan probably exists. <a href='/scandelete?id=" + id + "&confirm=1'>Click here to delete it.</a>")+for modName in self.dp.moduleInstances.keys():print "Signalling module " + modName + " to stop."self.dp.moduleInstances[modName].stopScanning()