List the shares from a server anonymously

smbclient

smbclient --list={{server}} --no-pass

click the source code to copy install smbclient on any operating system with command-not-found.com