Smbclient is a tool used to communicate with SMB servers. The following command will list out all available shares on the target server using valid credentials.
Command Reference:
Target IP: 10.10.10.1
Domain: test.local
Username: test
Password: Welkom01!
smbclient -L \\test.local -I 10.10.10.1 -U test Welkom01!