Post-exploitation and Lateral Movement

A tester with no credentials finds TCP 21, 135, 389 and 445 open on a legacy file server. The tester needs the names of its fileshares and whether they allow unauthenticated access. Which action is BEST?

Show the answer

Correct answerB. Try an unauthenticated SMB null session and list the shares

AWhy not this: An anonymous LDAP bind reads directory objects, which does not enumerate fileshares or their access.

BWhy this is right: SMB serves Windows fileshares, and a null session tests share listing and access with no credentials.

CWhy not this: Anonymous FTP lists the FTP service's own directories, which are not the SMB fileshares.

DWhy not this: The endpoint mapper lists RPC services and bindings, not the shares or their permissions.

Fileshares are served by SMB on TCP 445, and a null session tests whether shares can be listed and accessed without credentials. Anonymous FTP only exposes the FTP directory tree, not SMB shares.