SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.
Python attacksurfacecticybersecurityfootprintinghackinginformation-gatheringinformation-securityinfosecintelligence-gatheringosintosint-frameworkosint-reconnaissanceosint-toolpentestingpythonreconsecurity-toolsthreat-intelligencethreatintel
sfwebui: Add formatting and icon to alertify notifications (#1367)
bcolesc6c4878a8e63
diff --git a/spiderfoot/static/js/spiderfoot.js b/spiderfoot/static/js/spiderfoot.jsindex 43f84eea..8cfa2ce3 100644--- a/spiderfoot/static/js/spiderfoot.js+++ b/spiderfoot/static/js/spiderfoot.js@@ -95,11 +95,13 @@ sf.deleteScan = function(scan_id, callback) {url: "/scandelete?id=" + scan_id});req.done(function() {- alertify.success('Scan ' + scan_id + ' deleted')+ alertify.success('<i class="glyphicon glyphicon-ok-circle"></i> <b>Scans Deleted</b><br/><br/>' + scan_id.replace(/,/g, "<br/>"));+ sf.log("Deleted scans: " + scan_id);callback();});req.fail(function (hr, textStatus, errorThrown) {- alertify.error("Error: " + hr.responseText);+ alertify.error('<i class="glyphicon glyphicon-minus-sign"></i> <b>Error</b><br/></br>' + hr.responseText);+ sf.log("Error deleting scans: " + scan_id + ": " + hr.responseText);});};@@ -109,11 +111,13 @@ sf.stopScan = function(scan_id, callback) {url: "/stopscan?id=" + scan_id});req.done(function() {- alertify.success('Scan ' + scan_id + ' aborted');+ alertify.success('<i class="glyphicon glyphicon-ok-circle"></i> <b>Scans Aborted</b><br/><br/>' + scan_id.replace(/,/g, "<br/>"));+ sf.log("Aborted scans: " + scan_id);callback();});req.fail(function (hr, textStatus, errorThrown) {- alertify.error("Error: " + hr.responseText);+ alertify.error('<i class="glyphicon glyphicon-minus-sign"></i> <b>Error</b><br/><br/>' + hr.responseText);+ sf.log("Error stopping scans: " + scan_id + ": " + hr.responseText);});};@@ -128,7 +132,7 @@ sf.fetchData = function (url, postData, postFunc) {req.done(postFunc);req.fail(function (hr, status) {- alertify.error("AJAX Error: " + status);+ alertify.error('<i class="glyphicon glyphicon-minus-sign"></i> <b>Error</b><br/>' + status);});};