Sha256: 30094214ba2ad985c66a36143e2661599a954698278176812b0952f6be8598da

Contents?: true

Size: 1.09 KB

Versions: 6

Compression:

Stored size: 1.09 KB

Contents

=begin
    Copyright 2010-2015 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::Stdout

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

    def run
        print_info 'Relevant issues:'
        print_info '--------------------'

        results.each do |digests|
            issue = report.issue_by_digest( digests.first )
            print_ok "#{issue.name} in #{issue.vector.type} input" <<
                " '#{issue.affected_input_name}' using #{issue.vector.method.to_s.upcase}" <<
                ' at the following pages:'

            digests.each do |digest|
                print_info "  * #{report.issue_by_digest( digest ).vector.action}"
            end

            print_line
        end
    end

end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
arachni-1.3.2 components/reporters/plugin_formatters/stdout/uniformity.rb
arachni-1.3.1 components/reporters/plugin_formatters/stdout/uniformity.rb
arachni-1.3 components/reporters/plugin_formatters/stdout/uniformity.rb
arachni-1.2.1 components/reporters/plugin_formatters/stdout/uniformity.rb
arachni-1.2 components/reporters/plugin_formatters/stdout/uniformity.rb
arachni-1.1 components/reporters/plugin_formatters/stdout/uniformity.rb