Module: Msf::GeneralEventSubscriber
- Included in:
- FrameworkEventSubscriber, Simple::Framework
- Defined in:
- lib/msf/core/general_event_subscriber.rb
Overview
This event subscriber class exposes methods that are called when internal framework events occur, such as the loading and creation of a module.
Instance Method Summary collapse
-
#on_module_complete(instance) ⇒ Object
Called when a module finishes.
-
#on_module_created(instance) ⇒ Object
Called when a new module instance is created.
-
#on_module_error(instance, exception) ⇒ Object
Called when a module raises an exception.
-
#on_module_load(refname, klass) ⇒ Object
Called when a module is loaded.
-
#on_module_run(instance) ⇒ Object
Called when a module is run.
Instance Method Details
#on_module_complete(instance) ⇒ Object
Called when a module finishes
30 31 |
# File 'lib/msf/core/general_event_subscriber.rb', line 30 def on_module_complete(instance) end |
#on_module_created(instance) ⇒ Object
Called when a new module instance is created
18 19 |
# File 'lib/msf/core/general_event_subscriber.rb', line 18 def on_module_created(instance) end |
#on_module_error(instance, exception) ⇒ Object
Called when a module raises an exception
36 37 |
# File 'lib/msf/core/general_event_subscriber.rb', line 36 def on_module_error(instance, exception) end |
#on_module_load(refname, klass) ⇒ Object
Called when a module is loaded
12 13 |
# File 'lib/msf/core/general_event_subscriber.rb', line 12 def on_module_load(refname, klass) end |
#on_module_run(instance) ⇒ Object
Called when a module is run
24 25 |
# File 'lib/msf/core/general_event_subscriber.rb', line 24 def on_module_run(instance) end |