Vulnerability & Exploit Database

Back to search

Microsoft SQL Server xp_cmdshell Command Execution

This module will execute a Windows command on a MSSQL/MSDE instance via the xp_cmdshell procedure. A valid username and password is required to use this module

Free Metasploit Download

Get your copy of the world's leading penetration testing tool

 Download Now

Module Name



  • tebo <tebo [at]>




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_exec msf auxiliary(mssql_exec) > show actions ...actions... msf auxiliary(mssql_exec) > set ACTION <action-name> msf auxiliary(mssql_exec) > show options and set options... msf auxiliary(mssql_exec) > run