Skip to content

SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.

UI improvements

smicallef423848badcee
diff --git a/dyn/newscan.tmpl b/dyn/newscan.tmpl
index 7992bdde..8793c93e 100644
--- a/dyn/newscan.tmpl
+++ b/dyn/newscan.tmpl
@@ -1,7 +1,7 @@
<%include file="HEADER.tmpl"/>
<script type='text/javascript'>
- activeTab = "module";
- alternateTab = "type";
+ activeTab = "type";
+ alternateTab = "module";
function submitForm() {
list = "";
@@ -57,21 +57,21 @@ Another scan is currently running (${runningScan}). Please either wait for that
</div>
<div class="control-group">
<ul class='nav nav-tabs'>
- <li id='moduletab' class="active"><a onClick='switchTab()' href='#'>By Module</a></li>
- <li id='typetab'><a onClick='switchTab()' href='#'>By Required Data</a></li>
+ <li id='typetab' class="active"><a onClick='switchTab()' href='#'>By Required Data</a></li>
+ <li id='moduletab'><a onClick='switchTab()' href='#'>By Module</a></li>
<div style='text-align: right'>
<button type="button" onClick='selectAll()' class="btn-mini btn-info">Select All</button>&nbsp;&nbsp;
<button type="button" onClick='deselectAll()' class="btn-mini btn-info">De-Select All</button>
</div>
</ul>
- <table class="table table-striped table-condensed" id="moduletable">
+ <table class="table table-striped table-condensed" id="moduletable" style='display: none'>
% for item in sorted(modules):
% if item != "sfp__stor_db":
<tr><td><input type=checkbox id="module_${item}" checked></td><td>${modules[item]['name']}</td><td>${modules[item]['descr']}</td></tr>
% endif
% endfor
</table>
- <table class="table table-striped table-condensed" id="typetable" style='display: none'>
+ <table class="table table-striped table-condensed" id="typetable">
<% count = 0 %>
% for item in sorted(types):
% if count % 2 == 0:
diff --git a/dyn/opts.tmpl b/dyn/opts.tmpl
index 06b01beb..f3bfe3f3 100644
--- a/dyn/opts.tmpl
+++ b/dyn/opts.tmpl
@@ -43,7 +43,8 @@
<ul class="nav nav-tabs">
<li id='tab_global' class="active"><a href='#' onClick='switchTab("global");'>Global</a></li>
% for mod in sorted(opts['__modules__'].keys()):
- % if len(opts['__modules__'][mod]['opts']) > 0:
+ <% keylist = dict((k, v) for k, v in opts['__modules__'][mod]['opts'].iteritems() if not k.startswith('_')) %>
+ % if len(keylist) > 0:
<li id='tab_${mod}'><a href='#' onClick='switchTab("${mod}");' >${opts['__modules__'][mod]['name']}</a></li>
% endif
% endfor