Rapid7 Vulnerability & Exploit Database

Microsoft SQL Server Generic Query from File

Back to Search

Microsoft SQL Server Generic Query from File



This module will allow for multiple SQL queries contained within a specified file to be executed against a Microsoft SQL (MSSQL) Server instance, given the appropriate credentials.


  • j0hn__f : <jf@tinternet.org.uk>


Module Options

To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':

msf > use auxiliary/admin/mssql/mssql_sql_file
msf auxiliary(mssql_sql_file) > show actions
msf auxiliary(mssql_sql_file) > set ACTION < action-name >
msf auxiliary(mssql_sql_file) > show options
    ...show and set options...
msf auxiliary(mssql_sql_file) > run 

Time is precious, so I don’t want to do something manually that I can automate. Leveraging the Metasploit Framework when automating any task keeps us from having to re-create the wheel as we can use the existing libraries and focus our efforts where it matters.

– Jim O’Gorman | President, Offensive Security