https://www.samba.org/samba/docs/current/man-html/smbclient.1.html

Basis

smbclient -L [TARGET_IP] --no-pass
List Shares anonymously.

smbclient -L [TARGET_IP] -U myUser
List Shares with a user.

smbclient //[TARGET_IP]/mySmbShare
Connect to a Share.

Flags

-L
List Shares.

-U myUser
Specify the user.

-N
No password (--no-pass).

-p 12
Specify the port.