[daily][samba] smbclient使用
用的也不是太明白,反正凑合用吧。
在用之前,只得到了两个信息,1:ip 192.168.30.9. 2:可以免密登录。
1. 用这个命令看一看,主要是找到这个目录:Anonymous
┬─[tong@T7:~]─[09:55:02 AM] ╰─>$ smbclient -L 192.168.30.9 -N Sharename Type Comment --------- ---- ------- IPC$ IPC IPC Service (system-Lenovo-Product server (Samba, Ubuntu)) Xxxxx Disk Xxxxxx Work Group Anonymous Disk Anonymous share access print$ Disk Printer Drivers Reconnecting with SMB1 for workgroup listing. Server Comment --------- ------- Workgroup Master --------- ------- WORKGROUP SYSTEM-LENOVO-PRODUCT
2. 像FTP一样,登上去
┬─[tong@T7:~]─[09:55:04 AM] ╰─>$ smbclient //192.168.30.9/Anonymous -N Try "help" to get a list of possible commands. smb: \> ls
3. 然后get就行啦
smb: \> help ? allinfo altname archive backup blocksize cancel case_sensitive cd chmod chown close del deltree dir du echo exit get getfacl geteas hardlink help history iosize lcd link lock lowercase ls l mask md mget mkdir more mput newer notify open posix posix_encrypt posix_open posix_mkdir posix_rmdir posix_unlink posix_whoami print prompt put pwd q queue quit readlink rd recurse reget rename reput rm rmdir showacls setea setmode scopy stat symlink tar tarmode timeout translate unlock volume vuid wdel logon listconnect showconnect tcon tdis tid logoff .. ! smb: \> ls