module

Microsoft SQL Server Command Execution

Disclosed
N/A
Created
May 30, 2018

Description

This module will execute a Windows command on a MSSQL/MSDE instance via the xp_cmdshell (default) or the
sp_oacreate procedure (more opsec safe, no output, no temporary data table). A valid username and password is
required to use this module.

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
...show and set options...
msf auxiliary(mssql_exec) > run

Title
Rapid7 Labs

2026 Global Threat Landscape Report

The predictive window has collapsed. Exploitation follows disclosure in days. See how attackers are accelerating and how to stay ahead.