Sha256: 5d1a37ed38a5c2ce86d2536e329e49a19875df372b96f3e326c1aa3eb7e632ca

Contents?: true

Size: 1.12 KB

Versions: 6

Compression:

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

# @author Tasos "Zapotek" Laskos <tasos.laskos@arachni-scanner.com>
class PluginFormatters::VectorCollector < Arachni::Plugin::Formatter

    def run
        results.each do |url, elements|
            print_status url
            print_status '-' * 80

            elements.each do |element|
                print_info "#{element['type']} pointing to #{element['action']}"

                if (element['inputs'] || {}).any?
                    element['inputs'].each do |name, value|
                        print_info "    #{name.inspect} => #{value.inspect}"
                    end
                end

                if element['source']
                    print_info element['source']
                end

                print_line
            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/vector_collector.rb
arachni-1.3.1 components/reporters/plugin_formatters/stdout/vector_collector.rb
arachni-1.3 components/reporters/plugin_formatters/stdout/vector_collector.rb
arachni-1.2.1 components/reporters/plugin_formatters/stdout/vector_collector.rb
arachni-1.2 components/reporters/plugin_formatters/stdout/vector_collector.rb
arachni-1.1 components/reporters/plugin_formatters/stdout/vector_collector.rb