Class: Msf::Exploit::Remote::SMB::LogAdapter::Logger

Inherits:
Logger
  • Object
show all
Defined in:
lib/msf/core/exploit/remote/smb/log_adapter.rb

Overview

API inherited from ::Rex::Ui::Output, but as it is a class - it can not be included as a mixin

Instance Method Summary collapse

Constructor Details

#initialize(mod, log_device) ⇒ Logger

Returns a new instance of Logger.


6
7
8
9
# File 'lib/msf/core/exploit/remote/smb/log_adapter.rb', line 6

def initialize(mod, log_device)
  super(log_device)
  @mod = mod
end

Instance Method Details

Prints a message with no decoration.


51
52
53
# File 'lib/msf/core/exploit/remote/smb/log_adapter.rb', line 51

def print(msg = '')
  @mod.print(msg)
end

Prints an error message.


14
15
16
# File 'lib/msf/core/exploit/remote/smb/log_adapter.rb', line 14

def print_error(msg = '')
  @mod.print_error(msg)
end

Prints a 'good' message.


23
24
25
# File 'lib/msf/core/exploit/remote/smb/log_adapter.rb', line 23

def print_good(msg = '')
  @mod.print_good(msg)
end

Prints an undecorated line of information.


37
38
39
# File 'lib/msf/core/exploit/remote/smb/log_adapter.rb', line 37

def print_line(msg = '')
  @mod.print_line(msg)
end

Prints a status line.


30
31
32
# File 'lib/msf/core/exploit/remote/smb/log_adapter.rb', line 30

def print_status(msg = '')
  @mod.print_status(msg)
end

Prints a warning


44
45
46
# File 'lib/msf/core/exploit/remote/smb/log_adapter.rb', line 44

def print_warning(msg = '')
  @mod.print_warning(msg)
end