Class Msf::EventDispatcher
In: lib/msf/core/event_dispatcher.rb
Parent: Object

This class manages subscriber registration and is the entry point for dispatching various events that occur for modules, such as exploit results and auxiliary module data. The framework and external modules can register themselves as subscribers to various events such that they can perform custom actions when a specific event or events occur.

Methods

Included Modules

Framework::Offspring

Public Class methods

Public Instance methods

This method adds a db event subscriber. db event subscribers receive notifications when events occur that pertain to db changes. The subscriber provided must implement the DatabaseEvent module methods in some form.

This method adds an exploit event subscriber. Exploit event subscribers receive notifications when events occur that pertain to exploits, such as the success or failure of an exploitation attempt. The subscriber provided must implement the ExploitEvents module methods in some form.

This method adds a general subscriber. General subscribers receive notifications when all events occur.

This method adds a session event subscriber. Session event subscribers receive notifications when sessions are opened and closed. The subscriber provided must implement the SessionEvents module methods in some form.

Capture incoming events and pass them off to the subscribers

Called when a module is unloaded from the framework. This, in turn, notifies all registered general event subscribers.

Called when a module is loaded into the framework. This, in turn, notifies all registered general event subscribers.

Removes a db event subscriber.

Removes an exploit event subscriber.

Removes a general subscriber.

Removes a session event subscriber.

[Validate]