metasploit-framework
https://github.com/rapid7/metasploit-framework
Ruby
Metasploit Framework
Msf::Ui::Console::CommandDispatcher::Common#set_rhosts_from_addrs
Set RHOSTS in the +active_module+'s (or global if none) datastore from an array of addresses This stores all the addresses to a temporary file and utilizes the <pre>file:/tmp/filename</pre> syntax to confer the addrs. +rhosts+ should be an Array. NOTE: the temporary file is *not* deleted automatically.
Edit
git clone [email protected]:rapid7/metasploit-framework.git
cd metasploit-framework
open lib/msf/ui/console/command_dispatcher/common.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Msf--Ui--Console--CommandDispatcher--Common-set_rhosts_from_addrs-for-pr
# Commit to gitgit add lib/msf/ui/console/command_dispatcher/common.rbgit commit -m "better docs for Msf::Ui::Console::CommandDispatcher::Common#set_rhosts_from_addrs"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Msf--Ui--Console--CommandDispatcher--Common-set_rhosts_from_addrs-for-pr
hub pull-request
# Celebrate!