Sha256: 9c64fa68bf1f919bd5a6c9e26b6e2be5bf065d94c47605f19e7506bfe1da4106
Contents?: true
Size: 1.45 KB
Versions: 2
Compression:
Stored size: 1.45 KB
Contents
=begin Copyright 2010-2017 Sarosys LLC <http://www.sarosys.com> This file is part of the Arachni Framework project and is subject to redistribution and commercial restrictions. Please see the Arachni Framework web site for more information on licensing and terms of use. =end class Arachni::Reporters::HTML # HTML formatter for the results of the AutoLogin plugin # # @author Tasos "Zapotek" Laskos <tasos.laskos@arachni-scanner.com> class PluginFormatters::AutoLogin < Arachni::Plugin::Formatter include TemplateUtilities def run ERB.new( tpl ).result( binding ) end def tpl <<-HTML <% if results['status'] == 'ok' %> <p class="alert alert-success"> <%= results['message'] %> </p> <h3>Cookies set to:</h3> <dl class="dl-horizontal"> <% results['cookies'].each do |k, v| %> <dt> <code><%= escapeHTML( k ) %></code> </dt> <dd> <code><%= escapeHTML( v ) %></code> </dd> <% end %> </dl> <% else %> <p class="alert alert-danger"> <%= results['message'] %> </p> <% end %> HTML end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
arachni-1.5.1 | components/reporters/plugin_formatters/html/autologin.rb |
arachni-1.5 | components/reporters/plugin_formatters/html/autologin.rb |