Dcom tool activates a COM object by CLSID on a remote system and invokes methods on it via OLE Automation (IDispatch). This lets you execute functionality exposed by DCOM objects without writing custom COM client code.
Subcommands
| Command | Description |
|---|---|
| invoke | Activate a DCOM object and invoke a method on it |
For help on any subcommand, run
Dcom <subcommand> -h.invoke
Activates an OLE Automation object by CLSID on a remote server and calls a named method on it, optionally passing arguments.Parameters
Parameters
Hostname or IP address of the server to connect to.
CLSID (class identifier) of the COM object to activate, in standard
{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx} format.Name of the method to invoke on the activated object.
Arguments to pass to the method. Arguments are passed in order.
Transport options
Transport options
Encrypt all RPC messages exchanged with the remote object.
Output format:
Freeform, Raw, Table, List, Csv, Tsv, Json.Override the Service Principal Name used for Kerberos authentication.
Endpoint of an authentication proxy.
SOCKS5 proxy endpoint (
host:port).Authentication
Authentication
User name (without domain).
Domain of the authenticating user.
Password.
NTLM hash for pass-the-hash.
Use anonymous authentication.
AES-128 or AES-256 Kerberos key.
TGT file path (
.kirbi or ccache).KDC endpoint (
host:port).User to impersonate via S4U2self.
Connection
Connection
Common usage patterns
Remote code execution via MMC20.Application
Remote code execution via MMC20.Application
The MMC20.Application object (
{49B2791A-B1AE-4C90-9B8E-E860BA07F889}) exposes a Document.ActiveView.ExecuteShellCommand method that can be used for remote code execution:Remote code execution via ShellWindows
Remote code execution via ShellWindows
The ShellWindows object (
{9BA05972-F6A8-11CF-A442-00A0C90A8F39}) is another common target:Discovering DCOM applications
Discovering DCOM applications
Use
Reg getdcomapp to read DCOM application launch and access permissions from the registry before invoking:Related tools
Reg getdcomapp
Read DCOM application launch and access permissions from the remote registry.
Reg set
Modify DCOM application configuration in the registry.