=begin Copyright 2010-2014 Tasos Laskos 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 HealthMap plugin # # @author Tasos "Zapotek" Laskos # class PluginFormatters::HealthMap < Arachni::Plugin::Formatter include TemplateUtilities def run ERB.new( tpl ).result( binding ) end def tpl <<-HTML
Total
<%= results['total'] %>
Without issues
<%= results['without_issues'] %>
With issues
<%= results['with_issues'] %>
Issue percentage
<%= results['issue_percentage'] %>
    <% results['map'].sort_by { |entry| entry.keys.first }.each do |entry| state, url = entry.to_a.first %>
  • <%= escapeHTML url %>
  • <% end %>
HTML end end end