Sha256: 63a1d1c812f21039fa58ddf7655e4f2860f2a9f941ce916953617055e675a63c

Contents?: true

Size: 1.39 KB

Versions: 4

Compression:

Stored size: 1.39 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 AutoLogin plugin
        #
        #
        # @author: Tasos "Zapotek" Laskos
        #                                      <tasos.laskos@gmail.com>
        #                                      <zapotek@segfault.gr>
        # @version: 0.1
        #
        class AutoLogin < Arachni::Plugin::Formatter

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

            def run
                print_status( 'AutoLogin' )
                print_info( '~~~~~~~~~~~~~~' )

                print_info( 'Description: ' + @description )
                print_line
                print_ok( @results[:msg] )

                return if !@results[:cookies]
                print_info( 'Cookies set to:' )
                @results[:cookies].each_pair {
                    |name, val|
                    print_info( '    * ' + name + ' = ' + val )
                }
            end

        end

    end
end

end
end

Version data entries

4 entries across 4 versions & 1 rubygems

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