nxc_mssql
Execute NetExec MSSQL commands for SQL Server enumeration, querying, and OS command execution via xp_cmdshell.
Instructions
Execute NetExec MSSQL protocol commands for SQL Server enumeration and command execution.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"target": "<target>"
},
"name": "nxc_mssql"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | Yes | Target SQL Server IP or hostname | |
| username | No | SQL username (or Windows user) | |
| password | No | Password for authentication | |
| domain | No | Domain for Windows authentication | |
| localAuth | No | Use SQL Server authentication instead of Windows | |
| query | No | SQL query to execute | |
| command | No | OS command to execute via xp_cmdshell | |
| module | No | Module to run (e.g., enum_logins, enum_impersonate) | |
| threads | No | Number of concurrent threads |