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.
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
#close ⇒ Object
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() rlog() end |