Skip to content

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

Visually indicate modules needing keys.

Steve3b8bfc8c773e
diff --git a/dyn/opts.tmpl b/dyn/opts.tmpl
index 4d27a417..3a0c5023 100644
--- a/dyn/opts.tmpl
+++ b/dyn/opts.tmpl
@@ -46,7 +46,13 @@
% for mod in sorted(opts['__modules__'].keys()):
<% 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>
+ <% keyicon = "" %>
+ <% apikeylist = dict((k, v) for k, v in opts['__modules__'][mod]['opts'].iteritems() if k.find("api_key") >= 0) %>
+ <%
+ if len(apikeylist) > 0:
+ keyicon = "&nbsp;&nbsp;<i class=\"icon-lock\"></i>"
+ %>
+ <li id='tab_${mod}'><a href='#' onClick='switchTab("${mod}");' >${opts['__modules__'][mod]['name']}${keyicon}</a></li>
% endif
% endfor
</ul>