metasploit-framework
https://github.com/rapid7/metasploit-framework
Ruby
Metasploit Framework
Plugin::Wmap::WmapCommandDispatcher#sort_by_orderid
Yes sorting hashes dont make sense but actually it does when you are enumerating one. And sort_by of a hash returns an array so this is the reason for this ugly piece of code
Edit
git clone [email protected]:rapid7/metasploit-framework.git
cd metasploit-framework
open plugins/wmap.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Plugin--Wmap--WmapCommandDispatcher-sort_by_orderid-for-pr
# Commit to gitgit add plugins/wmap.rbgit commit -m "better docs for Plugin::Wmap::WmapCommandDispatcher#sort_by_orderid"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Plugin--Wmap--WmapCommandDispatcher-sort_by_orderid-for-pr
hub pull-request
# Celebrate!