mirror of
https://github.com/maxDcb/C2Core
synced 2026-06-08 15:48:01 +00:00
65 lines
1.7 KiB
JSON
65 lines
1.7 KiB
JSON
{
|
|
"name": "cimExec",
|
|
"display_name": "cimExec",
|
|
"kind": "module",
|
|
"description": "Execute a command on a remote Windows host through CIM/WMI.",
|
|
"command_template": "cimExec [--vault {vault:q}] -h {h:q} -c {c:q} [-n {n:q}] [-a {a:q}] [-u {u:q}] [-p {p:q}]",
|
|
"target": "beacon",
|
|
"requires_session": true,
|
|
"platforms": ["windows"],
|
|
"archs": ["x86", "x64", "arm64"],
|
|
"args": [
|
|
{
|
|
"name": "--vault",
|
|
"type": "credential",
|
|
"required": false,
|
|
"description": "TeamServer vault credential reference. The TeamServer resolves it to -u DOMAIN\\user -p password before dispatch.",
|
|
"credential_filter": {
|
|
"type": "password"
|
|
}
|
|
},
|
|
{
|
|
"name": "-h",
|
|
"type": "flag",
|
|
"required": true,
|
|
"description": "Remote host name or IP."
|
|
},
|
|
{
|
|
"name": "-c",
|
|
"type": "flag",
|
|
"required": true,
|
|
"description": "Executable or command to start remotely."
|
|
},
|
|
{
|
|
"name": "-n",
|
|
"type": "flag",
|
|
"required": false,
|
|
"description": "CIM namespace. Defaults to root/cimv2."
|
|
},
|
|
{
|
|
"name": "-a",
|
|
"type": "flag",
|
|
"required": false,
|
|
"description": "Arguments passed to the remote command."
|
|
},
|
|
{
|
|
"name": "-u",
|
|
"type": "flag",
|
|
"required": false,
|
|
"description": "DOMAIN\\user for explicit credential mode."
|
|
},
|
|
{
|
|
"name": "-p",
|
|
"type": "flag",
|
|
"required": false,
|
|
"description": "Password for explicit credentials."
|
|
}
|
|
],
|
|
"examples": [
|
|
"cimExec --vault cred:credentialId -h server01 -c cmd.exe -a \"/c whoami\"",
|
|
"cimExec -h server01 -c cmd.exe -a \"/c whoami\"",
|
|
"cimExec -h server01 -n root/cimv2 -c powershell.exe -a \"-nop -c whoami\""
|
|
],
|
|
"source": "manifest"
|
|
}
|