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.
Edit
git clone [email protected]:rapid7/metasploit-framework.git
cd metasploit-framework
open lib/msf/core/module_manager.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Msf--ModuleManager-auto_subscribe_module-for-pr
# Commit to gitgit add lib/msf/core/module_manager.rbgit commit -m "better docs for Msf::ModuleManager#auto_subscribe_module"
# Open pull requestgem 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!