smbclient
Debug
$ smbclient -d <value>View list of shares
$ smbclient -L //host_or_ip -U [username] Example
Connect to admin (ADMIN$) share on the host with IP address 10.10.x.x
$ smbclient //10.10.x.x/ADMIN$ -U [username] Note: we can supply the password with the username using the
--usercommand:--user=jarrett%password. However, this may not be the ideal method for security reasons, since the password will be provided in plaintext.
Executing commands
$ smbclient -c 'command to execute'
# eg.
$ smbclient -c 'put file.exe'Additional flags:
-Wto set the SMB domain of the username
Last updated