Sha256: 86e20d0e89fbb62b8ebde5205682ecdb7c4f9629f4949eeccb787874fde74659
Contents?: true
Size: 1.78 KB
Versions: 7
Compression:
Stored size: 1.78 KB
Contents
=begin Copyright 2010-2014 Tasos Laskos <tasos.laskos@arachni-scanner.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 Uniformity plugin. # # @author Tasos "Zapotek" Laskos <tasos.laskos@arachni-scanner.com> class PluginFormatters::Uniformity < Arachni::Plugin::Formatter include TemplateUtilities def run ERB.new( tpl ).result( binding ) end def tpl <<-HTML <ul> <% results.each do |digests| %> <% issue = report.issue_by_digest( digests.first ) %> <li> <strong><%= escapeHTML issue.name %></strong> in <code><%= issue.vector.type %></code> input <code><%= issue.affected_input_name %></code> using <code><%= issue.vector.method.to_s.upcase %></code> at the following pages: <ul class="list-unstyled"> <% digests.each do |digest| issue = report.issue_by_digest( digest ) url = escapeHTML( issue.vector.action ) %> <li> <a class="btn btn-xs btn-info" href="<%= issue_location( issue ) %>" title="Inspect issue" > <i class="fa fa-eye"></i> </a> <a href="<%= url %>"><%= url %></a> </li> <% end %> </ul> </li> <%end%> </ul> HTML end end end
Version data entries
7 entries across 7 versions & 1 rubygems