Reply to comment
|See the examples
smbclient - ftp-like client to access SMB/CIFS resources on servers
linux conmand options
-p port This number is the TCP port number that will be used when making connections to the server. The standard (well-known) TCP port number for an SMB/CIFS server is 139, which is the default.
-g This parameter provides combined with -L easy parseable output that allows processing with utilities such as grep and cut.
-P Make queries to the external server using the machine account of the local server.
-h|--help Print a summary of command line options.
-I IP-address IP address is the address of the server to connect to. It should be
-V|--version Prints the program version number.
-N|--no-pass If specified, this parameter suppresses the normal password prompt from the client to the user. This is useful when accessing a service that does not require a password. Unless a password is specified on the command line or this parameter is specified, the client will request a password.
-k|--kerberos Try to authenticate with kerberos. Only useful in an Active Directory environment.
smbclient -L windows_box List shares on windows machine or samba server
echo 'message' | smbclient -M windows_box Send popup to windows machine (off by default in XP sp2)