Sha256: ea15821e20aa9098da384d9606cb1a331850a661eb627fec78f4179cd8b42b8b
Contents?: true
Size: 1.78 KB
Versions: 5
Compression:
Stored size: 1.78 KB
Contents
=begin Arachni Copyright (c) 2010-2011 Tasos "Zapotek" Laskos <tasos.laskos@gmail.com> This is free software; you can copy and distribute and modify this program under the term of the GPL v2.0 License (See LICENSE file for details) =end module Arachni module Reports class Stdout module PluginFormatters # # Stdout formatter for the results of the HealthMap plugin # # # @author: Tasos "Zapotek" Laskos # <tasos.laskos@gmail.com> # <zapotek@segfault.gr> # @version: 0.1 # class HealthMap < Arachni::Plugin::Formatter def initialize( plugin_data ) @results = plugin_data[:results] end def run print_status( 'URL health-map' ) print_info( '~~~~~~~~~~~~~~~~' ) print_line print_info( 'Legend:' ) print_ok( 'No issues' ) print_error( 'Has issues' ) print_line @results[:map].each { |i| state = i.keys[0] url = i.values[0] if state == :unsafe print_error( url ) else print_ok( url ) end } print_line print_info( 'Total: ' + @results[:total].to_s ) print_ok( 'Without issues: ' + @results[:safe].to_s ) print_error( 'With issues: ' + @results[:unsafe].to_s + " ( #{@results[:issue_percentage].to_s}% )" ) print_line end end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems