How to Use smbclient
(From http://blog.csdn.net/fanlovefan/archive/2007/07/13/1688658.aspx)
1. List the Shared Folders provided by an IP address.
Smbclient-l 198.168.0.1-u username % Password
2. Use smbclient like an FTP Client
Smbclient // 192.168.0.1/tmp-u username % Password
After the smbclient command is successfully executed, enter the smbclient environment and a prompt is displayed: SMB: \>
Many Commands are similar to FTP commands, such as CD, LCD, get, megt, put, and mput. With these commands, we can access the shared resources of remote hosts.
3. directly use the smbclient command at one time
Smbclient-c "ls" // 192.168.0.1/tmp-u username % Password
And
Smbclient // 192.168.0.1/tmp-u username % Password
SMB: \> ls
Same functions
Create a shared folder
Smbclient-c "mkdir share1" // 192.168.0.1/tmp-u username % Password
If the user shares/192.168.0.1/tmp in read-only mode, a message is displayed.
Nt_status_access_denied making remote directory \ share1