rapid7/metasploit-framework — pull request #977 by nullbind (2012-10-28 18:59:56+00:00)
Title: Microsoft SQL Database Link Crawler

This module can be used to crawl MS SQL Server database links and deploy metasploit payloads through links configured with sysadmin privileges via a direct database connection once a valid set of
credentials have been provided. If you are attempting to obtain multiple reverse shells using this module we recommend setting the “DisablePayloadHandler” advanced option to “true”, and setting up a multi/handler to run in the background as a job to support multiple incoming shells. If you are interested in deploying payloads to spefic servers this module also supports that functionality via the “DEPLOYLIST” option. Currently, the module is capable of delivering payloads to both 32bit and 64bit Windows systems via powershell memory injection methods based on Matthew Graeber’s work . As a result, the target server must have powershell installed. By default, all of the crawl information is saved to a CSV formatted log file and MSF loot so that the tool can also be used for auditing without deploying payloads.