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
57 lines
1.5 KiB
JSON
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"
|
|
}
|