Sha256: 2191d8f6795d93da3876c6d8876a56f0abd37df9114b2f88e34786d0a7a0b23d

Contents?: true

Size: 951 Bytes

Versions: 7

Compression:

Stored size: 951 Bytes

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 CookieCollector plugin
#
# @author Tasos "Zapotek" Laskos <tasos.laskos@arachni-scanner.com>
class PluginFormatters::CookieCollector < Arachni::Plugin::Formatter

    def run
        results.each_with_index do |result, i|
            print_info "[#{(i + 1).to_s}] On #{result['time']}"
            print_info "URL: #{result['response']['url']}"

            print_info 'Cookies forced to: '
            result['cookies'].each_pair do |name, value|
                print_info "    #{name} => #{value}"
            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/cookie_collector.rb
arachni-1.0.5 components/reporters/plugin_formatters/stdout/cookie_collector.rb
arachni-1.0.4 components/reporters/plugin_formatters/stdout/cookie_collector.rb
arachni-1.0.3 components/reporters/plugin_formatters/stdout/cookie_collector.rb
arachni-1.0.2 components/reporters/plugin_formatters/stdout/cookie_collector.rb
arachni-1.0.1 components/reporters/plugin_formatters/stdout/cookie_collector.rb
arachni-1.0 components/reporters/plugin_formatters/stdout/cookie_collector.rb