Skip to main content

Overview

Impacket provides comprehensive support for Microsoft’s Distributed Component Object Model (DCOM) and Windows Management Instrumentation (WMI). These technologies enable object-oriented remote procedure calls and system management.

DCOM Architecture

Core Components

From dcomrt.py:1-150:

DCOM UUIDs and CLSIDs

From dcomrt.py:48-72:

Windows Management Instrumentation (WMI)

WMI Connection

From wmi.py:1-150:

Complete WMI Example

WMI Process Execution

Creating Remote Process

Common WMI Queries

System Information

Process Management

Service Information

User and Session Info

Disk and File System

WMI Event Subscription

Monitoring Events

DCOM Objects

ShellWindows

ShellBrowserWindow

WMI Namespaces

Common WMI namespaces:

Authentication

NTLM Authentication

Kerberos Authentication

Error Handling

Common HRESULT Codes

Best Practices

Connection Management

Query Optimization

See Also