metasploit-framework
https://github.com/rapid7/metasploit-framework
Ruby
Metasploit Framework
MetasploitModule#get_subnet_octet
Input an octet of an IPv4 address and the cooresponding octet of the IPv4 netmask then return the appropreate subnet octet.
Edit
git clone [email protected]:rapid7/metasploit-framework.git
cd metasploit-framework
open modules/post/multi/manage/autoroute.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-MetasploitModule-get_subnet_octet-for-pr
# Commit to gitgit add modules/post/multi/manage/autoroute.rbgit commit -m "better docs for MetasploitModule#get_subnet_octet"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-MetasploitModule-get_subnet_octet-for-pr
hub pull-request
# Celebrate!