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]
Executing commands
$ smbclient -c 'command to execute'
# eg.
$ smbclient -c 'put file.exe'
Additional flags:
-W
to set the SMB domain of the username
Last updated