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.



77
78
79
# File 'lib/msf/core/exploit/remote/smb/log_adapter.rb', line 77

def initialize(mod)
  @mod = mod
end

Instance Method Details

#closeObject



85
86
87
# File 'lib/msf/core/exploit/remote/smb/log_adapter.rb', line 85

def close
  # noop
end

#write(message) ⇒ Object



81
82
83
# File 'lib/msf/core/exploit/remote/smb/log_adapter.rb', line 81

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