rapid7/metasploit-framework — pull request #541 by nullbind (2012-06-28 19:08:48+00:00)
Title: Module for finding and sampling data from sql servers

I applied the changes todb requested and added support for 2k, 2k5, and 2k8.

This script will search through all of the non-default databases on the SQL Server for columns that match the keywords defined in the TSQL KEYWORDS option. If column names are found that match the defined keywords and data is present in the associated tables, the script will select a sample of the records from each of the affected tables. The sample size is determined by the SAMPLE_SIZE option, and results output in a CSV format.

I also used rhosts, so if the module is configured with DBA credentials, it can be used to scrape datafrom many databases very quickly.