Class: Msf::Exploit::Remote::SMB::LogAdapter::LogDevice::Framework

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

Overview

Logs using the default framework logging mechanism

Instance Method Summary collapse

Constructor Details

#initialize(_framework) ⇒ Framework

Returns a new instance of Framework.



60
61
62
63
64
# File 'lib/msf/core/exploit/remote/smb/log_adapter.rb', line 60

def initialize(_framework)
  # Note that the framework instance is not technically required as {rlog} is global
  # it's just an attempt at future proofing the API
  # @framework = framework
end

Instance Method Details

#closeObject



70
71
72
# File 'lib/msf/core/exploit/remote/smb/log_adapter.rb', line 70

def close
  # noop
end

#write(message) ⇒ Object



66
67
68
# File 'lib/msf/core/exploit/remote/smb/log_adapter.rb', line 66

def write(message)
  rlog(message)
end