Class: Msf::Exploit::Remote::SMB::LogAdapter::LogDevice::Framework
- Inherits:
-
Object
- Object
- Msf::Exploit::Remote::SMB::LogAdapter::LogDevice::Framework
- Defined in:
- lib/msf/core/exploit/remote/smb/log_adapter.rb
Overview
Logs using the default framework logging mechanism
Instance Method Summary collapse
- #close ⇒ Object
-
#initialize(_framework) ⇒ Framework
constructor
A new instance of Framework.
- #write(message) ⇒ Object
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
#close ⇒ Object
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() rlog() end |