metasploit-framework

https://github.com/rapid7/metasploit-framework

Ruby

Metasploit Framework

Msf::DBManager::Web#report_web_page

Report a Web Page to the database.  WebPage must be tied to an existing Web Site

opts MUST contain
+:web_site+:: the web site object that this page should be associated with
+:path+::     the virtual host name for this particular web site
+:code+::     the http status code from requesting this page
+:headers+::  this is a HASH of headers (lowercase name as key) of ARRAYs of values
+:body+::     the document body of the server response
+:query+::    the query string after the path

If web_site 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
+:vhost+:: the virtual host for this particular web site
+:ssl+::   whether or not SSL is in use on this port

These values will be used to create new host, service, and web_site records

opts can contain
+:cookie+::   the Set-Cookie headers, merged into a string
+:auth+::     the Authorization headers, merged into a string
+:ctype+::    the Content-Type headers, merged into a string
+:mtime+::    the timestamp returned from the server of the last modification time
+:location+:: the URL that a redirect points to

Duplicate records for a given web_site, path, and query combination will be overwritten

Source | Google | Stack overflow

Edit

git clone [email protected]:rapid7/metasploit-framework.git

cd metasploit-framework

open lib/msf/core/db_manager/web.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Msf--DBManager--Web-report_web_page-for-pr


# Commit to git

git add lib/msf/core/db_manager/web.rbgit commit -m "better docs for Msf::DBManager::Web#report_web_page"


# Open pull request

gem 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_page-for-pr

hub pull-request


# Celebrate!