metasploit-framework
https://github.com/rapid7/metasploit-framework
Ruby
Metasploit Framework
Msf::Module.is_usable
This method allows modules to tell the framework if they are usable on the system that they are being loaded on in a generic fashion. By default, all modules are indicated as being usable. An example of where this is useful is if the module depends on something external to ruby, such as a binary.
Edit
git clone [email protected]:rapid7/metasploit-framework.git
cd metasploit-framework
open lib/msf/core/module.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Msf--Module-is_usable-for-pr
# Commit to gitgit add lib/msf/core/module.rbgit commit -m "better docs for Msf::Module.is_usable"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Msf--Module-is_usable-for-pr
hub pull-request
# Celebrate!