Sha256: 03113d2b1525cfefc9496c337054cab7bc99c72cd160f0e9ed6860ae4287cd67

Contents?: true

Size: 1.63 KB

Versions: 5

Compression:

Stored size: 1.63 KB

Contents

=begin
                  Arachni
  Copyright (c) 2010-2011 Tasos "Zapotek" Laskos <tasos.laskos@gmail.com>

  This is free software; you can copy and distribute and modify
  this program under the term of the GPL v2.0 License
  (See LICENSE file for details)

=end

module Arachni
module Reports

class Stdout
    module PluginFormatters

        #
        # Stdout formatter for the results of the CookieCollector plugin
        #
        # @author: Tasos "Zapotek" Laskos
        #                                      <tasos.laskos@gmail.com>
        #                                      <zapotek@segfault.gr>
        # @version: 0.1
        #
        class CookieCollector < Arachni::Plugin::Formatter

            def initialize( plugin_data )
                @results     = plugin_data[:results]
                @description = plugin_data[:description]
            end

            def run
                print_status( 'Cookie collector' )
                print_info( '~~~~~~~~~~~~~~~~~~' )

                print_info( 'Description: ' + @description )
                print_line

                @results.each_with_index {
                    |result, i|

                    print_info( "[#{(i + 1).to_s}] On #{result[:time]}" )
                    print_info( "URL: " + result[:res]['effective_url'] )
                    print_info( 'Cookies forced to: ' )
                    result[:cookies].each_pair{
                        |name, value|
                        print_info( "    #{name} => #{value}" )
                    }
                    print_line
                }

                print_line
            end

        end

    end
end

end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
arachni-0.3 reports/plugin_formatters/stdout/cookie_collector.rb
arachni-0.2.4 reports/plugin_formatters/stdout/cookie_collector.rb
arachni-0.2.3 reports/plugin_formatters/stdout/cookie_collector.rb
arachni-0.2.2.2 reports/plugin_formatters/stdout/cookie_collector.rb
arachni-0.2.2.1 reports/plugin_formatters/stdout/cookie_collector.rb