Skip to main content

Crate smolder_psexecsvc

Crate smolder_psexecsvc 

Source
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:

Structs§

LaunchConfig
Launch configuration used by the Windows service host.
PipeNames
Local Windows named-pipe names derived from one prefix.
PipeServiceArgs
Named-pipe execution parameters consumed by the interactive service mode.
ServiceArgs
One execution request consumed by the payload binary.

Enums§

PayloadRequest
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.