metasploit-framework

https://github.com/rapid7/metasploit-framework

Ruby

Metasploit Framework

Msf::EventDispatcher#method_missing

Capture incoming events and pass them off to the subscribers

When receiving an on_* event, look for a subscriber type matching the
type of the event.  If one exists, send the event on to each subscriber
of that type.  Otherwise, try to send the event each of the general
subscribers.

Event method names should be like "on_<type>_<event>", e.g.:
on_exploit_success.

Source | Google | Stack overflow

Edit

git clone [email protected]:rapid7/metasploit-framework.git

cd metasploit-framework

open lib/msf/core/event_dispatcher.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Msf--EventDispatcher-method_missing-for-pr


# Commit to git

git add lib/msf/core/event_dispatcher.rbgit commit -m "better docs for Msf::EventDispatcher#method_missing"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-Msf--EventDispatcher-method_missing-for-pr

hub pull-request


# Celebrate!