Skip to main content

Available Interfaces

Impacket implements numerous Microsoft RPC interfaces in the dcerpc/v5/ directory. Each interface provides protocol-specific functionality for Windows remote administration and security testing.

Service Management

SCMR - Service Control Manager

Module: impacket.dcerpc.v5.scmr
UUID: 367ABB81-9844-35F1-AD32-98F038001003
Pipe: \\pipe\\svcctl
Protocol: [MS-SCMR]
From scmr.py:1-100:
Key Functions:
  • hROpenSCManagerW() - Open SCM
  • hROpenServiceW() - Open service handle
  • hRCreateServiceW() - Create service
  • hRStartServiceW() - Start service
  • hRControlService() - Control service (stop, pause)
  • hRDeleteService() - Delete service
  • hREnumServicesStatusW() - Enumerate services
  • hRQueryServiceConfigW() - Get service configuration

Security & Authentication

SAMR - Security Account Manager

Module: impacket.dcerpc.v5.samr
UUID: 12345778-1234-ABCD-EF00-0123456789AC
Pipe: \\pipe\\samr
Protocol: [MS-SAMR]
From samr.py:1-100:
Key Functions:
  • hSamrConnect() - Connect to SAM
  • hSamrEnumerateDomainsInSamServer() - List domains
  • hSamrEnumerateUsersInDomain() - List users
  • hSamrEnumerateGroupsInDomain() - List groups
  • hSamrOpenUser() - Open user handle
  • hSamrQueryInformationUser() - Get user info
  • hSamrChangePasswordUser() - Change password
  • hSamrGetMembersInGroup() - Get group members

LSAD - Local Security Authority

Module: impacket.dcerpc.v5.lsad
UUID: 12345778-1234-ABCD-EF00-0123456789AB
Pipe: \\pipe\\lsarpc
Protocol: [MS-LSAD]
From lsad.py:1-100:
Key Functions:
  • hLsarOpenPolicy() - Open LSA policy
  • hLsarQueryInformationPolicy() - Query policy info
  • hLsarEnumerateAccounts() - List accounts
  • hLsarEnumeratePrivileges() - List privileges
  • hLsarLookupNames() - Name to SID
  • hLsarLookupSids() - SID to name
  • hLsarEnumerateAccountRights() - Get account rights
  • hLsarAddAccountRights() - Add privileges

Directory Services

DRSUAPI - Directory Replication Service

Module: impacket.dcerpc.v5.drsuapi
UUID: E3514235-4B06-11D1-AB04-00C04FC2DCD2
Pipe: \\pipe\\drsuapi
Protocol: [MS-DRSR]
From drsuapi.py:1-100:
Key Functions:
  • DRSBind() - Bind to DRS
  • DRSCrackNames() - Convert name formats
  • DRSGetNCChanges() - Replicate objects
  • DRSDomainControllerInfo() - Get DC info
  • Used by DCSync attacks to replicate password hashes

Network Services

SRVS - Server Service

Module: impacket.dcerpc.v5.srvs
Pipe: \\pipe\\srvsvc

WKST - Workstation Service

Module: impacket.dcerpc.v5.wkst
Pipe: \\pipe\\wkssvc

Task Scheduling

TSCH - Task Scheduler

Module: impacket.dcerpc.v5.tsch
Pipe: \\pipe\\atsvc (legacy) or dynamic

ATSVC - AT Service (Legacy)

Module: impacket.dcerpc.v5.atsvc

Registry Access

RRP - Windows Registry

Module: impacket.dcerpc.v5.rrp
Pipe: \\pipe\\winreg

Printing

RPRN - Print System

Module: impacket.dcerpc.v5.rprn
Pipe: \\pipe\\spoolss

Endpoint Mapper

EPM - Endpoint Mapper

Module: impacket.dcerpc.v5.epm
UUID: E1AF8308-5D1F-11C9-91A4-08002B14A0FA
Port: TCP 135

Netlogon

NRPC - Netlogon Remote Protocol

Module: impacket.dcerpc.v5.nrpc
Pipe: \\pipe\\netlogon

Event Log

EVEN - Event Log (Legacy)

Module: impacket.dcerpc.v5.even
Pipe: \\pipe\\eventlog

EVEN6 - Event Log (Vista+)

Module: impacket.dcerpc.v5.even6
Pipe: Dynamic

Additional Interfaces

Common Patterns

Interface Discovery

Error Handling

See Also