Expand description
Shared argument parsing and command execution for the Smolder PsExec service.
smolder-psexecsvc is the target-side Windows service payload used by the
smolder package’s psexec mode. The host-side orchestration logic lives in
the smolder package; this crate only covers payload-local concerns such as:
- parsing SCM-delivered startup arguments
- selecting file-capture or named-pipe execution mode
- deriving the pipe names used by interactive sessions
- launching the requested child process and persisting exit status
The public API is intentionally small because the binary is meant to stay predictable and easy to audit.
Most users should consume this indirectly through the smolder package. Use
this crate directly only when you are auditing or extending the target-side
payload behavior.
Start here:
parse_payload_request: decode SCM-delivered file or pipe execution modeparse_pipe_service_args: parse the interactive pipe-backed request shapePipeNames: derive the four local named pipes used by interactive sessionsrun_service_once: run one file-capture payload request locally
Structs§
- Launch
Config - Launch configuration used by the Windows service host.
- Pipe
Names - Local Windows named-pipe names derived from one prefix.
- Pipe
Service Args - Named-pipe execution parameters consumed by the interactive service mode.
- Service
Args - One execution request consumed by the payload binary.
Enums§
- Payload
Request - Payload execution mode selected by the SCM-delivered service arguments.
Functions§
- parse_
launch_ config - Parses the process command line into the SCM dispatch configuration.
- parse_
payload_ request - Parses the SCM-delivered service arguments into either file-capture or pipe mode.
- parse_
pipe_ service_ args - Parses the SCM-delivered service arguments into one named-pipe execution request.
- parse_
service_ args - Parses the SCM-delivered service arguments into one execution request.
- run_
service_ once - Runs the requested script once and persists the resulting exit code.