Pre-made commands

connect with null user
smbclient --no-pass -L //$target
connect with password
smbclient -U 'username[%passwd]' -L //$ip # password will be prompted
connect with password
smbclient -U 'username[%passwd]' -L --pw-nt-hash //$ip # password will be prompted, use nt hash