Module: Arachni::Report::Options

Extended by:
Options
Includes:
Component::Options
Included in:
Options
Defined in:
lib/arachni/report/base.rb

Overview

Provides some common options for the reports.

Author:

Instance Method Summary collapse

Instance Method Details

#outfile(ext = '', desc = 'Where to save the report.') ⇒ Arachni::OptString

Returns a string option named ‘outfile’.

Default value is:

year-month-day hour.minute.second +timezone.extension

Parameters:

  • ext (String) (defaults to: '')

    extension for the outfile

  • desc (String) (defaults to: 'Where to save the report.')

    description of the option

Returns:

  • (Arachni::OptString)


40
41
42
43
# File 'lib/arachni/report/base.rb', line 40

def outfile( ext = '', desc = 'Where to save the report.' )
    Options::String.new( 'outfile', [ false, desc,
        Time.now.to_s.gsub( ':', '.' ) + ext ] )
end

#skip_responsesObject



45
46
47
48
49
50
51
52
53
54
# File 'lib/arachni/report/base.rb', line 45

def skip_responses
    Options::Bool.new( 'skip_responses',
        [ false,
         "Don't include the bodies of the HTTP " +
             "responses of the issues in the report" +
             " -- will lead to a greatly decreased report file-size.",
         false
        ]
    )
end