Summery
Commands
Basic usage:
smbclient -L -N //<IP>/ - List shares as a null user
smbclient -N //<IP>/Share - Access a share as a null user
smbclient //192.168.178.248/transfer --user='user' --password='lab' - Access a share as an authenticated user
Commands to download everything from a share:
recurse ON
prompt ON
mget *
Command to upload everything from a folder:
prompt OFF
mput *
Command to upload a file to a share:
put /local/path/file.txt file.txt
Command to rename a file on a share:
rename oldname.txt newname.txt