Post-exploitation and Lateral Movement

A Windows file server exposes only TCP 135 and 445 through a firewall. A tester needs the list of RPC services registered on it and their bindings. What is the BEST approach?

Show the answer

Correct answerD. Query the endpoint mapper on TCP 135 to list registered interfaces

AWhy not this: LDAP queries return directory data, and TCP 389 is not exposed through the firewall.

BWhy not this: rpcinfo -p reads the Unix portmapper on port 111, which is filtered and not the Windows mechanism.

CWhy not this: A Telnet connection to TCP 135 returns no readable banner and cannot list RPC interfaces.

DWhy this is right: The endpoint mapper on TCP 135 answers queries listing registered RPC interfaces and their bindings.

The Windows RPC endpoint mapper listens on TCP 135 and returns registered interfaces and their bindings, which rpcdump-style queries read. rpcinfo -p targets the Unix portmapper on port 111, which is not exposed and does not describe Windows services.