metasploit-framework
https://github.com/rapid7/metasploit-framework
Ruby
Metasploit Framework
Msf::DBManager::ModuleCache#search_modules
This provides a standard set of search filters for every module. Supported keywords with the format <keyword>:<search_value>: +app+:: If +client+ then matches +'passive'+ stance modules, otherwise matches +'active' stance modules. +author+:: Matches modules with the given author email or name. +bid+:: Matches modules with the given Bugtraq ID. +cve+:: Matches modules with the given CVE ID. +edb+:: Matches modules with the given Exploit-DB ID. +name+:: Matches modules with the given full name or name. +os+, +platform+:: Matches modules with the given platform or target name. +ref+:: Matches modules with the given reference ID. +type+:: Matches modules with the given type. Any text not associated with a keyword is matched against the description, the full name, and the name of the module; the name of the module actions; the name of the module archs; the name of the module authors; the name of module platform; the module refs; or the module target.
Edit
git clone [email protected]:rapid7/metasploit-framework.git
cd metasploit-framework
open lib/msf/core/db_manager/module_cache.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Msf--DBManager--ModuleCache-search_modules-for-pr
# Commit to gitgit add lib/msf/core/db_manager/module_cache.rbgit commit -m "better docs for Msf::DBManager::ModuleCache#search_modules"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Msf--DBManager--ModuleCache-search_modules-for-pr
hub pull-request
# Celebrate!