(from http://blog.csdn.net/fanlovefan/archive/2007/07/13/1688658.aspx)

1,列出某个IP地址所提供的共享文件夹

smbclient -L 198.168.0.1 -U username%password
 
2,像FTP客户端一样使用smbclient
smbclient //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%password
smb:\>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

相关文章:

  • 2021-06-14
  • 2021-12-25
  • 2021-12-28
  • 2021-12-19
  • 2021-10-04
  • 2022-02-18
  • 2021-08-09
猜你喜欢
  • 2021-12-27
  • 2021-12-02
  • 2022-12-23
  • 2021-10-30
  • 2021-09-24
  • 2021-10-17
相关资源
相似解决方案