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

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

Overview

Logs using the provided module

Instance Method Summary collapse

Constructor Details

#initialize(mod) ⇒ Module

Returns a new instance of Module.



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

def initialize(mod)
  @mod = mod
end

Instance Method Details

#closeObject



47
48
49
# File 'lib/msf/core/exploit/remote/smb/log_adapter.rb', line 47

def close
  # noop
end

#write(message) ⇒ Object



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

def write(message)
  @mod.print(message)
end