mirror of
https://github.com/maxDcb/C2Core
synced 2026-06-08 15:48:01 +00:00
108a370807
* CommandSpecs * CommandSpecs * feat(command-specs): add simple module specs * listModule * AssemblyExec * AssemblyExecTests * Minor * Inject * InjectTests * Spec modules * Folder layout * upload & download * Chisel Minidump Powershell & Script * CoffLoader DotnetExec /KerberosUseTicket PsExec PwSh ScreenShot * add artifact_filters * Minor * stabilisation * Fixes * manual test * manual test * manual test * manual test * manual test * manual test * manual test * manual test * ScreenShot png * socks5 hostname * Maj for AI * minor
55 lines
1.3 KiB
JSON
55 lines
1.3 KiB
JSON
{
|
|
"name": "cimExec",
|
|
"display_name": "cimExec",
|
|
"kind": "module",
|
|
"description": "Execute a command on a remote Windows host through CIM/WMI.",
|
|
"command_template": "cimExec -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": "-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 credentials."
|
|
},
|
|
{
|
|
"name": "-p",
|
|
"type": "flag",
|
|
"required": false,
|
|
"description": "Password for explicit credentials."
|
|
}
|
|
],
|
|
"examples": [
|
|
"cimExec -h server01 -c cmd.exe -a \"/c whoami\"",
|
|
"cimExec -h server01 -n root/cimv2 -c powershell.exe -a \"-nop -c whoami\""
|
|
],
|
|
"source": "manifest"
|
|
}
|