SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.
Python attacksurfacecticybersecurityfootprintinghackinginformation-gatheringinformation-securityinfosecintelligence-gatheringosintosint-frameworkosint-reconnaissanceosint-toolpentestingpythonreconsecurity-toolsthreat-intelligencethreatintel
Include instructions in the UI.
smicallef685d57220905
diff --git a/dyn/opts.tmpl b/dyn/opts.tmplindex 41ca7257..ed43a918 100644--- a/dyn/opts.tmpl+++ b/dyn/opts.tmpl@@ -106,7 +106,27 @@optdesc = opts['__modules__'][mod]['optdescs'][opt]%>- <tr><td>${optdesc}</td><td style='vertical-align: middle'>+ <tr>+ <td>${optdesc}+ % if "api_key" in opt:+ <%+ instructions = ""+ if "dataSource" in opts['__modules__'][mod]['meta']:+ instructions = "<div><b>Website:</b> <a href='" + opts['__modules__'][mod]['meta']['dataSource']['website'] + "' target=_new>" + opts['__modules__'][mod]['meta']['dataSource']['website'] + "</a><br>"+ instructions += "<b>Module purpose:</b> " + opts['__modules__'][mod]['descr'] + "<br><br>"++ n = 0+ if "apiKeyInstructions" in opts['__modules__'][mod]['meta']['dataSource']:+ for step in opts['__modules__'][mod]['meta']['dataSource']['apiKeyInstructions']:+ n += 1+ instructions += str(n) + ". " + step + "<br>"++ instructions += "</div>"+ %>+ <a href='#' data-html="true" data-toggle="popover" data-trigger="focus" title="Instructions" data-content="${instructions}"><i class="glyphicon glyphicon-question-sign"></i></a>+ % endif+ </td>+ <td style='vertical-align: middle'>% if type(modopts[opt]) is int:<div class='input-group'><input id='${mod}:${opt}' class='form-control' type=text value="${modopts[opt]}">@@ -154,5 +174,11 @@</div></div> <!-- /tabbable tabs-left --></form>+<script type='text/javascript'>+ $(function () {+ $('[data-toggle="popover"]').popover()+ $('[data-toggle="popover"]').on("show.bs.popover", function() { $(this).data("bs.popover").tip().css("max-width", "600px") });+ });+</script><br><br><%include file="FOOTER.tmpl"/>diff --git a/sf.py b/sf.pyindex 62fa5c7f..6f6db23a 100755--- a/sf.py+++ b/sf.py@@ -161,6 +161,7 @@ if __name__ == '__main__':mod = __import__('modules.' + modName, globals(), locals(), [modName])sfModules[modName]['object'] = getattr(mod, modName)()sfModules[modName]['name'] = sfModules[modName]['object'].__doc__.split(":", 5)[0]+ sfModules[modName]['meta'] = sfModules[modName]['object'].metasfModules[modName]['cats'] = sfModules[modName]['object'].__doc__.split(":", 5)[1].split(",")sfModules[modName]['group'] = sfModules[modName]['object'].__doc__.split(":", 5)[2]sfModules[modName]['labels'] = sfModules[modName]['object'].__doc__.split(":", 5)[3].split(",")