metasploit-framework
https://github.com/rapid7/metasploit-framework
Ruby
Metasploit Framework
MetasploitModule#check_ip
Validation check on an IPv4 address Yet another IP validator. I'm sure there's some Rex function that can just do this.
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-check_ip-for-pr
# Commit to gitgit add modules/post/multi/manage/autoroute.rbgit commit -m "better docs for MetasploitModule#check_ip"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-MetasploitModule-check_ip-for-pr
hub pull-request
# Celebrate!