Reconnaissance and Enumeration

A Linux file server shows TCP ports 111 and 2049 open and no SMB ports. The tester wants the directories it exports to clients. Which command BEST does this?

Show the answer

Correct answerA. showmount -e 10.0.0.8

AWhy this is right: showmount -e queries the NFS mount daemon and returns the exported directories and the clients allowed to mount them.

BWhy not this: rpcinfo -p lists registered RPC services such as mountd and nfs, but it does not show the exported directories.

CWhy not this: smbclient lists SMB shares, and this server exposes no SMB ports, so the query gets no answer.

DWhy not this: ldapsearch queries a directory service for entries and has nothing to do with file exports.

Ports 111 and 2049 indicate NFS, and showmount -e asks the server's mount daemon for its export list. smbclient -L enumerates SMB shares, but no SMB service is listening here.