ms-scmr
Pure-Rust client for MS-SCMR (Service Control Manager Remote) — the wire protocol
behind sc.exe, remote service inventory, and the psexec-style
"create a service whose binary is your command, start it, delete it" primitive.
Layered over the dcerpc crate (which provides the authenticated \PIPE\svcctl
SMB transport, NDR marshaling, and RpcError / Syntax types). Together they let a
Rust program do everything sc.exe / services.msc do remotely, without a Windows
runtime.
Dual-use
SCMR is one of the everyday tools of a Windows admin: fleet service inventory,
remote debugger start/stop, IR containment (sc stop wuauserv), routine automation.
It's also the psexec primitive. This crate is published on that dual-use footing —
the same wire surface serves defenders, DFIR, admin tooling, and offensive tooling.
Status
v0.1.0 — the CreateService → StartService → DeleteService cycle for command
execution, plus the [exec] output-capture wrapper. Query/enum service state,
RControlService, richer service-config, and the DACL surface are follow-ups on the
0.1 line (all additive).
Example
# use SmbClient;
# async
License
MIT.