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
50 lines
1.3 KiB
JSON
50 lines
1.3 KiB
JSON
{
|
|
"name": "pwSh",
|
|
"display_name": "pwSh",
|
|
"kind": "module",
|
|
"description": "Initialize and use the in-memory PowerShell runner. The runner DLL is fixed to Tools/Any/any/rdm.dll.",
|
|
"command_template": "pwSh {action} {command_or_script:q?} {arguments:raw?}",
|
|
"target": "beacon",
|
|
"requires_session": true,
|
|
"platforms": ["windows"],
|
|
"archs": ["x86", "x64", "arm64"],
|
|
"args": [
|
|
{
|
|
"name": "action",
|
|
"type": "enum",
|
|
"required": true,
|
|
"description": "PwSh action.",
|
|
"values": ["init", "run", "import", "script"]
|
|
},
|
|
{
|
|
"name": "command_or_script",
|
|
"type": "text",
|
|
"required": false,
|
|
"description": "PowerShell command for run, or script artifact for import/script.",
|
|
"artifact_filter": {
|
|
"category": "script",
|
|
"scope": "server",
|
|
"target": "beacon",
|
|
"platform": "windows",
|
|
"runtime": "powershell",
|
|
"name_contains": ".ps1"
|
|
},
|
|
"completion_parents": ["import", "script"]
|
|
},
|
|
{
|
|
"name": "arguments",
|
|
"type": "text",
|
|
"required": false,
|
|
"description": "Optional PowerShell command tail.",
|
|
"variadic": true
|
|
}
|
|
],
|
|
"examples": [
|
|
"pwSh init",
|
|
"pwSh run whoami",
|
|
"pwSh import PowerView.ps1",
|
|
"pwSh script collect.ps1"
|
|
],
|
|
"source": "manifest"
|
|
}
|