githubEdit

MSRPC

  • Inter Process Communication (IPC)

  • Windows exposes a lot of common interface for other machines to connect to.

  • MS-RPC uses the following mechanism to expose these Remote Procedure Calls:

    • TCP

    • SMB

TCP

  • PORT 135 is the endpoint mapper

  • Maps all the RPC endpoints to the TCP ports (49152 to 65535) available on that computer

HTTPS

  • PORT 593 is the endpoint mapper

SMB

  • PORT 445

  • SMB using its IPC$arrow-up-right share, exposes named pipes which can be used to perform RPC calls.

Ephemeral Range

  • Range of TCP ports directly hosting RPC application

Enumeration

Impacket's rpcdump.py

Bindings

  • ncalrpc: Local IPC.

  • ncacn_np: IPC running over SMB as named pipes.

  • ncacn_ip_tcp: IPC running over TCP protocol.

rpcclient

rpcclient commands

Last updated