Overview
impacket-rpcdump queries the RPC Endpoint Mapper (port 135) to enumerate all registered RPC interfaces and endpoints on a target. The output reveals which services are running and listening, which is valuable for attack planning.
Works with NULL sessions by default since the RPC Endpoint Mapper is typically accessible without authentication.
Basic Usage
Dump all RPC endpoints:Interesting Interfaces
MS-RPRN (PrinterBug / SpoolService)
UUID:12345678-1234-ABCD-EF00-0123456789AB
If the Print Spooler service is running, the target is vulnerable to the PrinterBug (coerce authentication back to attacker).
MS-EFSRPC (PetitPotam)
UUID:c681d488-d850-11d0-8c52-00c04fd90f7e (lsarpc)
UUID: df1941c5-fe89-4e79-bf10-463657acf44d (efsrpc)
Encrypting File System Remote Protocol. Allows unauthenticated coercion on unpatched DCs.
MS-DFSNM (DFSCoerce)
UUID:4fc742e0-4a10-11cf-8273-00aa004ae673
Distributed File System Namespace Management. Another coercion vector.
Other Notable Interfaces
| Interface | UUID Prefix | Significance |
|---|---|---|
| MS-SAMR | 12345778-1234-ABCD-EF00-0123456789AC | SAM database access, user enumeration |
| MS-LSAD | 12345778-1234-ABCD-EF00-0123456789AB | LSA policy, domain trust info |
| MS-DRSR | e3514235-4b06-11d1-ab04-00c04fc2dcd2 | Directory Replication (DCSync) |
| MS-SCMR | 367abb81-9844-35f1-ad32-98f038001003 | Service Control Manager (PsExec) |
| MS-TSCH | 86d35949-83c9-4044-b424-db363231fd0c | Task Scheduler (atexec) |
| MS-WMI | 8bc3f05e-d86b-11d0-a075-00c04fb68820 | WMI (wmiexec) |
Filter by Specific Port
Show only endpoints bound to a specific port:Authentication
Most of the time, rpcdump works without credentials (NULL session):Using Output for Attack Planning
Run rpcdump and check which attack paths are available:- Run rpcdump on the DC
- Identify exposed coercion interfaces (RPRN, EFSRPC, DFSNM)
- Set up ntlmrelayx or Responder
- Trigger coercion to capture or relay the DC machine account hash
Related: rpcclient Enumeration
rpcclient (from Samba) complements rpcdump for deeper interaction:
Quick Reference
| Flag | Description |
|---|---|
-port | Target port (default: 135) |
-hashes | NTLM hash for pass-the-hash (LM:NT or :NT) |
-target-ip | Explicit target IP (when using hostname) |