Class: Arachni::Reports::AP

Inherits:
Arachni::Report::Base show all
Includes:
Arachni::Report::Registrar, Arachni::UI::Output
Defined in:
reports/ap.rb

Overview

Awesome prints an Arachni::AuditStore#to_h hash.

@author: Anastasios “Zapotek” Laskos

                                     <tasos.laskos@gmail.com>
                                     <zapotek@segfault.gr>

@version: $Rev: 276 $

Class Method Summary (collapse)

Instance Method Summary (collapse)

Methods included from Arachni::Report::Registrar

included

Methods included from Arachni::UI::Output

#debug!, #debug?, #only_positives!, #only_positives?, #print_debug, #print_debug_backtrace, #print_debug_pp, #print_error, #print_info, #print_line, #print_ok, #print_status, #print_verbose, #verbose!, #verbose?

Constructor Details

- (AP) initialize(audit_store, options = nil, outfile = nil)

A new instance of AP

Parameters:

  • (AuditStore) audit_store
  • (Hash) options (defaults to: nil)

    options passed to the report

  • (String) outfile (defaults to: nil)

    where to save the report



37
38
39
# File 'reports/ap.rb', line 37

def initialize( audit_store, options = nil, outfile = nil )
    @audit_store   = audit_store
end

Class Method Details

+ (Object) info

REQUIRED

Do not ommit any of the info.



61
62
63
64
65
66
67
68
# File 'reports/ap.rb', line 61

def self.info
    {
        'Name'           => 'AP',
        'Description'    => %q{Awesome prints an AuditStore hash.},
        'Author'         => 'zapotek',
        'Version'        => '$Rev: 276 $',
    }
end

Instance Method Details

- (Object) run

REQUIRED

Use it to run your report.



46
47
48
49
50
51
52
53
54
# File 'reports/ap.rb', line 46

def run( )
    
    print_line( )
    print_status( 'Awesome printing AuditStore...' )
    
    ap @audit_store.to_h
    
    print_status( 'Done!' )
end