metasploit-framework
https://github.com/rapid7/metasploit-framework
Ruby
Metasploit Framework
Msf::EventDispatcher#on_module_load
Called when a module is loaded into the framework. This, in turn, notifies all registered general event subscribers. This is covered by the method_missing logic, but defining it manually reduces startup time by about 10%.
Edit
git clone [email protected]:rapid7/metasploit-framework.git
cd metasploit-framework
open lib/msf/core/event_dispatcher.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Msf--EventDispatcher-on_module_load-for-pr
# Commit to gitgit add lib/msf/core/event_dispatcher.rbgit commit -m "better docs for Msf::EventDispatcher#on_module_load"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Msf--EventDispatcher-on_module_load-for-pr
hub pull-request
# Celebrate!