SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.
Python attacksurfacecticybersecurityfootprintinghackinginformation-gatheringinformation-securityinfosecintelligence-gatheringosintosint-frameworkosint-reconnaissanceosint-toolpentestingpythonreconsecurity-toolsthreat-intelligencethreatintel
Automatic highlighting of active page.
smicallef80f5de73547c
diff --git a/dyn/HEADER.tmpl b/dyn/HEADER.tmplindex b89ec6eb..488943e7 100644--- a/dyn/HEADER.tmpl+++ b/dyn/HEADER.tmpl@@ -39,8 +39,16 @@<a class="brand" href="/">SpiderFoot 2.0</a><div class="nav-collapse collapse"><ul class="nav">- <li><a href="/newscan"><i class="icon-screenshot icon-white"></i> New Scan</a></li>- <li class="active"><a href="/"><i class="icon-book icon-white"></i> Scans</a></li>+ <li+% if pageid == "NEWSCAN":+ class="active"+% endif+><a href="/newscan"><i class="icon-screenshot icon-white"></i> New Scan</a></li>+ <li+% if pageid == "SCANLIST":+ class="active"+% endif+><a href="/"><i class="icon-book icon-white"></i> Scans</a></li><li><a href="#config"><i class="icon-wrench icon-white"></i> Settings</a></li></ul><ul class="nav pull-right">diff --git a/sfwebui.py b/sfwebui.pyindex 6db58442..0b12ae93 100644--- a/sfwebui.py+++ b/sfwebui.py@@ -137,7 +137,7 @@ class SpiderFootWebUi:# Configure a new scandef newscan(self):templ = Template(filename='dyn/newscan.tmpl', lookup=self.lookup)- return templ.render(modules=self.config['__modules__'])+ return templ.render(pageid='NEWSCAN', modules=self.config['__modules__'])newscan.exposed = True# Main page listing scans available