Reconnaissance and Enumeration

A tester has no credentials and wants to list the SMB shares on a Windows server at 10.0.0.5 using an anonymous session. Which command BEST does this?

Show the answer

Correct answerB. smbclient -L //10.0.0.5 -N

AWhy not this: This lists NFS exports and does not query SMB shares.

BWhy this is right: The -L option lists the SMB shares and -N sends no password for an anonymous attempt.

CWhy not this: This only checks whether SNMP is open and does not list shares.

DWhy not this: This lists user accounts over RPC, which is user enumeration and not shares.

smbclient -L requests the server's share list, and -N attempts it without a password. showmount -e lists NFS exports, a different file-sharing protocol, so it returns nothing useful from an SMB server.