Sha256: 13b1c1b2ec90e28787d888d4edbc1d4e2e2aba2d1576d7ead9a93bee80593fd3

Contents?: true

Size: 1.12 KB

Versions: 7

Compression:

Stored size: 1.12 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::Stdout

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

    def run
        results.each do |type, responses|
            print_ok type

            responses.each do |res|
                print_status "    URL:    #{res['url']}"
                print_info   "    Method: #{res['method']}"

                if res['parameters'] && res['method'].downcase == 'post'
                    print_info '    Parameters:'
                    res['parameters'].each do |k, v|
                        print_info "        #{k} => #{v}"
                    end
                end

                print_line
            end

            print_line
        end
    end

end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
arachni-1.0.6 components/reporters/plugin_formatters/stdout/content_types.rb
arachni-1.0.5 components/reporters/plugin_formatters/stdout/content_types.rb
arachni-1.0.4 components/reporters/plugin_formatters/stdout/content_types.rb
arachni-1.0.3 components/reporters/plugin_formatters/stdout/content_types.rb
arachni-1.0.2 components/reporters/plugin_formatters/stdout/content_types.rb
arachni-1.0.1 components/reporters/plugin_formatters/stdout/content_types.rb
arachni-1.0 components/reporters/plugin_formatters/stdout/content_types.rb