Files
maxDcb-C2Core/modules/SshExec/sshExec.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

86 lines
1.9 KiB
JSON

{
"name": "sshExec",
"display_name": "sshExec",
"kind": "module",
"description": "Execute a command on a remote SSH server using username/password authentication.",
"command_template": "sshExec -h {h:q} [-P {P}] -u {u:q} -p {p:q} -- {command:raw}",
"target": "beacon",
"requires_session": true,
"platforms": ["windows", "linux"],
"archs": ["any"],
"args": [
{
"name": "-h",
"type": "flag",
"required": true,
"description": "SSH host name or IP."
},
{
"name": "--host",
"type": "flag",
"required": false,
"description": "SSH host name or IP."
},
{
"name": "-P",
"type": "flag",
"required": false,
"description": "SSH port. Defaults to 22."
},
{
"name": "--port",
"type": "flag",
"required": false,
"description": "SSH port. Defaults to 22."
},
{
"name": "-u",
"type": "flag",
"required": true,
"description": "SSH username."
},
{
"name": "--user",
"type": "flag",
"required": false,
"description": "SSH username."
},
{
"name": "-p",
"type": "flag",
"required": true,
"description": "SSH password."
},
{
"name": "--password",
"type": "flag",
"required": false,
"description": "SSH password."
},
{
"name": "-c",
"type": "flag",
"required": false,
"description": "Remote command."
},
{
"name": "--command",
"type": "flag",
"required": false,
"description": "Remote command."
},
{
"name": "command",
"type": "text",
"required": true,
"description": "Remote command tail passed after --.",
"variadic": true
}
],
"examples": [
"sshExec -h 10.0.0.5 -u admin -p Passw0rd! -c \"ipconfig /all\"",
"sshExec -h server -P 22 -u admin -p Passw0rd! -- /bin/echo hello"
],
"source": "manifest"
}