Attacks and Exploits
A tester has network access to a Windows file server at 10.10.1.20 and wants to list its SMB shares without credentials. Which command fits BEST?
Show the answer
Correct answerD. smbclient -L //10.10.1.20 -N
AWhy not this: nbtscan returns NetBIOS names, not the list of shares on the server.
BWhy not this: showmount -e lists NFS exports, a different file sharing protocol from SMB.
CWhy not this: dig axfr attempts a DNS zone transfer and returns records, not shares.
DWhy this is right: -L lists the server's SMB shares and -N tries a null session with no password.
smbclient -L requests the list of shares from an SMB server, and -N attempts it without a password. showmount -e lists NFS exports, not SMB shares, so it does not suit a Windows file server.