1,列出某个IP地址所提供的共享文件夹smbclient -L 198.168.0.1 -U username%password 2,像FTP客户端一样使用smbclientsmbclient //192.168.0.1/tmp -U username%password 执行smbclient命令成功后,进入smbclient环境,出现提示符: smb:/>这里有许多命令和ftp命令相似,如cd 、lcd、get、megt、put、mput等。通过这些命令,我们可以访问远程主机的共享资源。 3,直接一次性使用smbclient命令smbclient -c "ls" //192.168.0.1/tmp -U username%password和smbclient //192.168.0.1/tmp -U username%passwordsmb:/>ls功能一样的 例,创建一个共享文件夹smbclient -c "mkdir share1" //192.168.0.1/tmp -U username%password如果用户共享//192.168.0.1/tmp的方式是只读的,会提示NT_STATUS_ACCESS_DENIED making remote directory /share1
本文来自博客,转载请标明出处:http://blog.csdn.net/fanlovefan/archive/2007/07/13/1688658.aspx