Module: Arachni::Component::Output

Includes:
UI::Output
Included in:
Base, Base
Defined in:
lib/arachni/component/output.rb

Overview

Provides output functionality to the checks via UI::Output, prefixing the check name to the output message.

Author:

  • Tasos “Zapotek” Laskos <tasos.laskos@arachni-scanner.com>

Instance Method Summary collapse

Methods included from UI::Output

#debug?, #debug_level_1?, #debug_level_2?, #debug_level_3?, #debug_level_4?, #debug_off, #debug_on, #disable_only_positives, #included, #mute, #muted?, #only_positives, #only_positives?, #print_bad, #print_debug, #print_debug_backtrace, #print_debug_level_1, #print_debug_level_2, #print_debug_level_3, #print_debug_level_4, #print_error, #print_error_backtrace, #print_exception, #print_info, #print_line, #print_ok, #print_status, #print_verbose, #reroute_to_file, #reroute_to_file?, reset_output_options, #unmute, #verbose?, #verbose_on

Instance Method Details

#depersonalize_outputObject



19
20
21
# File 'lib/arachni/component/output.rb', line 19

def depersonalize_output
    @depersonalize_output = true
end

#depersonalize_output?Boolean

Returns:

  • (Boolean)


23
24
25
# File 'lib/arachni/component/output.rb', line 23

def depersonalize_output?
    @depersonalize_output
end

#intercept_print_message(message) ⇒ Object



27
28
29
30
31
32
33
34
35
# File 'lib/arachni/component/output.rb', line 27

def intercept_print_message( message )
    if self.class == Class
        fullname = self.fullname
    else
        fullname = self.class.fullname
    end

    depersonalize_output? ? message : "#{fullname}: #{message}"
end