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.



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

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



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

def close
  # noop
end

#write(message) ⇒ Object



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

def write(message)
  rlog(message)
end