mirror of
https://github.com/maxDcb/C2Core
synced 2026-06-08 15:48:01 +00:00
62 lines
1.7 KiB
JSON
62 lines
1.7 KiB
JSON
{
|
|
"name": "winRm",
|
|
"display_name": "winRm",
|
|
"kind": "module",
|
|
"description": "Execute a command remotely over WinRM.",
|
|
"command_template": "winRm [--vault {vault:q}] [{auth_mode} {username:q?} {password:q?}] {target:q} {command:raw?}",
|
|
"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 DOMAIN\\user and password before dispatch.",
|
|
"credential_filter": {
|
|
"type": "password"
|
|
}
|
|
},
|
|
{
|
|
"name": "auth_mode",
|
|
"type": "enum",
|
|
"required": false,
|
|
"description": "Authentication mode.",
|
|
"values": ["-u", "-k", "-n"]
|
|
},
|
|
{
|
|
"name": "username",
|
|
"type": "text",
|
|
"required": false,
|
|
"description": "DOMAIN\\Username for explicit -u mode."
|
|
},
|
|
{
|
|
"name": "password",
|
|
"type": "text",
|
|
"required": false,
|
|
"description": "Password for -u mode."
|
|
},
|
|
{
|
|
"name": "target",
|
|
"type": "text",
|
|
"required": true,
|
|
"description": "WinRM endpoint or target."
|
|
},
|
|
{
|
|
"name": "command",
|
|
"type": "text",
|
|
"required": false,
|
|
"description": "Remote command tail.",
|
|
"variadic": true
|
|
}
|
|
],
|
|
"examples": [
|
|
"winRm --vault cred:credentialId https://target:5986/wsman whoami.exe /all",
|
|
"winRm -u DOMAIN\\Username Password123! https://target:5986/wsman whoami.exe /all",
|
|
"winRm -k http://target.example.com:5985/wsman whoami.exe",
|
|
"winRm -n http://target:5985/wsman dir c:\\"
|
|
],
|
|
"source": "manifest"
|
|
}
|