impacket_wmiexec
Execute commands on remote Windows hosts via WMI, avoiding service creation for lower visibility than psexec. Requires admin credentials and WMI access on ports 135/445.
Instructions
Execute a command remotely on a Windows host via WMI using Impacket wmiexec.
wmiexec uses Windows Management Instrumentation (WMI) for remote execution, which is stealthier than psexec as it does not create a service.
Args: target: Target IP address or hostname. domain: Domain name (use "." for local accounts). username: Username for authentication. command: Command to execute on the remote host. password: Password for authentication (redacted in logs). hashes: NTLM hash for pass-the-hash (format: LM:NT). Alternative to password. timeout: Override scan timeout in seconds.
Returns: Command execution result with output.
WARNING: - Requires admin credentials and WMI access (port 135/445). - Generates Windows Event ID 4688 and WMI activity logs. - Requires explicit human authorization.
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>",
"domain": "<domain>",
"username": "<username>",
"command": "<command>"
},
"name": "impacket_wmiexec"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| domain | Yes | ||
| hashes | No | ||
| target | Yes | ||
| command | Yes | ||
| timeout | No | ||
| password | No | ||
| username | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||