SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.
Python attacksurfacecticybersecurityfootprintinghackinginformation-gatheringinformation-securityinfosecintelligence-gatheringosintosint-frameworkosint-reconnaissanceosint-toolpentestingpythonreconsecurity-toolsthreat-intelligencethreatintel
sfwebui: Use user-defined doc root path for static JS (#1821)
bcoles313b82a4ada8
diff --git a/spiderfoot/static/js/spiderfoot.js b/spiderfoot/static/js/spiderfoot.jsindex e8461e18..d75f730d 100644--- a/spiderfoot/static/js/spiderfoot.js+++ b/spiderfoot/static/js/spiderfoot.js@@ -83,7 +83,7 @@ sf.remove_sfurltag = function (data) {sf.search = function (scan_id, value, type, postFunc) {sf.fetchData(- "/search",+ docroot + "/search",{ id: scan_id, eventType: type, value: value },postFunc);@@ -92,7 +92,7 @@ sf.search = function (scan_id, value, type, postFunc) {sf.deleteScan = function(scan_id, callback) {var req = $.ajax({type: "GET",- url: "/scandelete?id=" + scan_id+ url: docroot + "/scandelete?id=" + scan_id});req.done(function() {alertify.success('<i class="glyphicon glyphicon-ok-circle"></i> <b>Scans Deleted</b><br/><br/>' + scan_id.replace(/,/g, "<br/>"));@@ -108,7 +108,7 @@ sf.deleteScan = function(scan_id, callback) {sf.stopScan = function(scan_id, callback) {var req = $.ajax({type: "GET",- url: "/stopscan?id=" + scan_id+ url: docroot + "/stopscan?id=" + scan_id});req.done(function() {alertify.success('<i class="glyphicon glyphicon-ok-circle"></i> <b>Scans Aborted</b><br/><br/>' + scan_id.replace(/,/g, "<br/>"));