metasploit-framework
https://github.com/rapid7/metasploit-framework
Ruby
Metasploit Framework
Msf::DBManager::Web#report_web_site
Report a Web Site to the database. WebSites must be tied to an existing Service opts MUST contain +:service+:: the service object this site should be associated with +:vhost+:: the virtual host name for this particular web site` If +:service+ is NOT specified, the following values are mandatory +:host+:: the ip address of the server hosting the web site +:port+:: the port number of the associated web site +:ssl+:: whether or not SSL is in use on this port These values will be used to create new host and service records opts can contain +:options+:: a hash of options for accessing this particular web site +:info+:: if present, report the service with this info Duplicate records for a given host, port, vhost combination will be overwritten
Edit
git clone [email protected]:rapid7/metasploit-framework.git
cd metasploit-framework
open lib/msf/core/db_manager/web.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Msf--DBManager--Web-report_web_site-for-pr
# Commit to gitgit add lib/msf/core/db_manager/web.rbgit commit -m "better docs for Msf::DBManager::Web#report_web_site"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Msf--DBManager--Web-report_web_site-for-pr
hub pull-request
# Celebrate!