Skip to content

Remote Execution / WMI / Services

Back to the Command Index

This category uses RPC over SMB named pipes or DCOM to run temporary services, tasks, WMI, and Terminal Services. The execution paths are as follows.

PathMain InterfaceCommands
Deployed binary + SCMR + named pipescmr + RemCompsexec
SCMR only (no persistent binary)scmrsmbexec, services
Task Schedulertsch / atsvcatexec
DCOM/WMIdcomrt + dcom/wmiwmiexec, wmiquery, wmipersist, dcomexec
Terminal Serviceststststool
External mimikatz RPCmimilibmimikatz

Temporary services, tasks, WMI filters/consumers, and deployed binaries must be removed on both success and exception paths.

CommandSummary
atexec.pyRegisters a temporary task through Task Scheduler RPC and runs a command on the target Windows host.
dcomexec.pyUses DCOM objects to run commands or a semi-interactive shell on the target host.
psexec.pyDeploys and starts a RemCom service binary on the target, then runs commands or an interactive shell through named pipes.
smbexec.pyCreates a temporary service through SCMR and retrieves command output over an SMB share. Does not leave an execution binary permanently on the target.
wmiexec.pyRuns commands or a semi-interactive shell through DCOM/WMI Win32_Process.Create.
wmipersist.pyCreates or removes WMI event filters, consumers, and bindings to run VBScript when an event occurs.
wmiquery.pyConnects to a WMI namespace, runs WQL queries, and displays attributes of returned objects.
mimikatz.pyConnects to a mimikatz RPC server and sends commands interactively or from a file.
tstool.pyUses Terminal Services RPC to enumerate, disconnect, log off, or terminate sessions and processes.
services.pyUses Service Control Manager RPC to list, inspect, create, configure, start, stop, or delete services.