Sha256: bb3aac5c7107e083017e34f3980b42dfc23076877058609758def33de5eef03a

Contents?: true

Size: 936 Bytes

Versions: 5

Compression:

Stored size: 936 Bytes

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 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

5 entries across 5 versions & 1 rubygems

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