metasploit-framework
https://github.com/rapid7/metasploit-framework
Ruby
Metasploit Framework
Msf::Module::Search#search_filter
This provides a standard set of search filters for every module.
The search terms are in the form of:
{
"text" => [ [ "include_term1", "include_term2", ...], [ "exclude_term1", "exclude_term2"], ... ],
"cve" => [ [ "include_term1", "include_term2", ...], [ "exclude_term1", "exclude_term2"], ... ]
}
Returns true on no match, false on matchEdit
git clone [email protected]:rapid7/metasploit-framework.git
cd metasploit-framework
open lib/msf/core/module/search.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Msf--Module--Search-search_filter-for-pr
# Commit to gitgit add lib/msf/core/module/search.rbgit commit -m "better docs for Msf::Module::Search#search_filter"
# 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--Search-search_filter-for-pr
hub pull-request
# Celebrate!