SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.
Python attacksurfacecticybersecurityfootprintinghackinginformation-gatheringinformation-securityinfosecintelligence-gatheringosintosint-frameworkosint-reconnaissanceosint-toolpentestingpythonreconsecurity-toolsthreat-intelligencethreatintel
Sorting of config options on the scan info screen.
smicallef75cbed1a1cb1
diff --git a/dyn/scaninfo.tmpl b/dyn/scaninfo.tmplindex e8e47b25..4530561f 100644--- a/dyn/scaninfo.tmpl+++ b/dyn/scaninfo.tmpl@@ -130,7 +130,14 @@table += "<h4>Module Settings</h4>";table += "<table class='table table-bordered table-striped' style='width: 400px'>";table += "<thead><tr><th>Module</th> <th>Option</th> <th>Value</th></tr></thead><tbody>";+ keys = [];for (var key in data['config']) {+ keys.push(key);+ }+ keys_s = keys.sort();++ for (var i = 0; i < keys_s.length; i++) {+ key = keys_s[i];if (key.indexOf(":") > 0) {bits = key.split(":");table += "<tr><td>" + bits[0] + "</td><td>" + data['configdesc'][key] + "</td><td>" + data['config'][key] + "</td></tr>";diff --git a/modules/sfp_spider.py b/modules/sfp_spider.pyindex a2d77f20..e854a5b0 100644--- a/modules/sfp_spider.py+++ b/modules/sfp_spider.py@@ -195,7 +195,7 @@ class sfp_spider(SpiderFootPlugin):continue# All tests passed, add link to be spidered- sf.info("Adding URL for spidering: " + link)+ sf.debug("Adding URL for spidering: " + link)returnLinks[link] = links[link]return returnLinksdiff --git a/sfdb.py b/sfdb.pyindex c771dc8f..6c7b266b 100644--- a/sfdb.py+++ b/sfdb.py@@ -271,7 +271,7 @@ class SpiderFootDb:# Retreive configuration data for a scan componentdef scanConfigGet(self, instanceId):qry = "SELECT component, opt, val FROM tbl_scan_config \- WHERE scan_instance_id = ?"+ WHERE scan_instance_id = ? ORDER BY component, opt"qvars = [instanceId]try:retval = dict()@@ -281,7 +281,6 @@ class SpiderFootDb:retval[opt] = valelse:retval[component + ":" + opt] = val-return retvalexcept sqlite3.Error as e:sf.error("SQL error encountered when fetching configuration: " + e.args[0])diff --git a/sfwebui.py b/sfwebui.pyindex db21e079..399a2669 100644--- a/sfwebui.py+++ b/sfwebui.py@@ -90,6 +90,7 @@ class SpiderFootWebUi:else:finished = "Not yet"ret['meta'] = [meta[0], meta[1], meta[2], started, finished, meta[5]]+return json.dumps(ret)scanopts.exposed = True