Files
maxDcb-C2Core/modules/Script/script.json
T
Maxime dcb 108a370807 CommandSpecs & Tests
* 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
2026-05-10 21:28:40 +02:00

57 lines
1.5 KiB
JSON

{
"name": "script",
"display_name": "script",
"kind": "module",
"description": "Run a TeamServer-managed script artifact on the beacon. Scripts are resolved from Scripts/<platform>, Scripts/Any, or UploadedArtifacts.",
"command_template": "script {script_artifact:q}",
"target": "beacon",
"requires_session": true,
"platforms": ["windows", "linux"],
"archs": ["any"],
"args": [
{
"name": "script_artifact",
"type": "artifact",
"required": true,
"description": "Script artifact compatible with the current session.",
"artifact_filters": [
{
"category": "script",
"scope": "server",
"target": "beacon",
"platform": "session.platform",
"runtime": "cmd"
},
{
"category": "script",
"scope": "server",
"target": "beacon",
"platform": "session.platform",
"runtime": "shell"
},
{
"category": "upload",
"scope": "operator",
"target": "beacon",
"platform": "session.platform",
"arch": "session.arch",
"runtime": "cmd"
},
{
"category": "upload",
"scope": "operator",
"target": "beacon",
"platform": "session.platform",
"arch": "session.arch",
"runtime": "shell"
}
]
}
],
"examples": [
"script cleanup.sh",
"script collect.cmd"
],
"source": "manifest"
}