Sha256: 5b2cc30e96134bc272523e397901a149d10129ef5e10592393ecae730dc90a7a

Contents?: true

Size: 1.13 KB

Versions: 5

Compression:

Stored size: 1.13 KB

Contents

=begin
    Copyright 2010-2022 Ecsypno <http://www.ecsypno.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::Stdout

# Stdout formatter for the results of the HealthMap plugin
#
# @author Tasos "Zapotek" Laskos <tasos.laskos@arachni-scanner.com>
class PluginFormatters::HealthMap < Arachni::Plugin::Formatter

    def run
        print_info 'Legend:'
        print_ok 'No issues'
        print_bad 'Has issues'
        print_line

        results['map'].sort_by { |_, v| v }.each do |i|
            state = i.keys[0]
            url   = i.values[0]

            if state == 'with_issues'
                print_bad( url )
            else
                print_ok( url )
            end
        end

        print_line

        print_info "Total: #{results['total']}"
        print_ok "Without issues: #{results['without_issues']}"
        print_bad "With issues: #{results['with_issues']} ( #{results['issue_percentage'].to_s}% )"
    end

end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
arachni-1.6.1.3 components/reporters/plugin_formatters/stdout/healthmap.rb
arachni-1.6.1.2 components/reporters/plugin_formatters/stdout/healthmap.rb
arachni-1.6.1.1 components/reporters/plugin_formatters/stdout/healthmap.rb
arachni-1.6.1 components/reporters/plugin_formatters/stdout/healthmap.rb
arachni-1.6.0 components/reporters/plugin_formatters/stdout/healthmap.rb