metasploit-framework

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

Ruby

Metasploit Framework

Msf::ModuleManager#auto_subscribe_module

This method automatically subscribes a module to whatever event
providers it wishes to monitor.  This can be used to allow modules
to automatically execute or perform other tasks when certain
events occur.  For instance, when a new host is detected, other
auxiliary modules may wish to run such that they can collect more
information about the host that was detected.

Source | Google | Stack overflow

Edit

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

cd metasploit-framework

open lib/msf/core/module_manager.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Msf--ModuleManager-auto_subscribe_module-for-pr


# Commit to git

git add lib/msf/core/module_manager.rbgit commit -m "better docs for Msf::ModuleManager#auto_subscribe_module"


# 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--ModuleManager-auto_subscribe_module-for-pr

hub pull-request


# Celebrate!