rt 开 445 的机器貌似 session
[root@fedora ~]# smbtree -b -U administrator
Enter administrator's password:
WORKGROUP
\\F1H6GUEWH61CUKV
[root@fedora ~]# nmblookup ^C
[root@fedora ~]# nmblookup F1H6GUEWH61CUKV
querying F1H6GUEWH61CUKV on 192.168.7.255
192.168.7.29 F1H6GUEWH61CUKV<00>
192.168.137.1 F1H6GUEWH61CUKV<00>
[root@fedora ~]# it
查询全部的主机 io
[root@fedora ~]# nmblookup \*
querying * on 192.168.7.255
192.168.7.20 *<00>
使用 cmbclient 登陆试试 ast
[root@fedora ~]# smbclient -L 192.168.7.20 -U administrator
Enter administrator's password:
Anonymous login successful
Domain=[WORKGROUP] OS=[Windows 7 Ultimate 7601 Service Pack 1] Server=[Windows 7 Ultimate 6.1]
Sharename Type Comment
--------- ---- -------
Error returning browse list: NT_STATUS_ACCESS_DENIED
session request to 192.168.7.20 failed (Called name not present)
session request to 192 failed (Called name not present)
session request to *SMBSERVER failed (Called name not present)
NetBIOS over TCP disabled -- no workgroup available
[root@fedora ~]#
能够看出来目标机器是win7 ... 登录
登陆不成功。。。 cli
若是链接成功了 就会显示全部的共享信息 request
[root@fedora ~]# smbclient -L 192.168.7.42 -U administrator
Enter administrator's password:
session request to 192.168.7.42 failed (Called name not present)
session request to 192 failed (Called name not present)
Domain=[SINCODER-C0582B] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]
Sharename Type Comment
--------- ---- -------
E$ Disk 默认共享
IPC$ IPC 远程 IPC
D$ Disk é»˜è°æœºé©±åŠ¨ç¨‹åº
SharedDocs Disk 打å
I$ Disk 默认共享
share Disk
G$ °æœº2 Printer Adobe PDF XPS Document Writer
F$ Disk 默认共享
ADMIN$ Disk 远程管ç†
H$ Disk 默认共享
C$ Disk 默认共享
session request to 192.168.7.42 failed (Called name not present)
session request to 192 failed (Called name not present)
Domain=[SINCODER-C0582B] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]
Server Comment
--------- -------
Workgroup Master
--------- -------
而后咱们能够链接到一个共享。。 im
[root@fedora ~]# smbclient //192.168.7.42/share
Enter root's password:
session request to 192.168.7.42 failed (Called name not present)
session request to 192 failed (Called name not present)
Domain=[SINCODER-C0582B] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]
smb: \> dir
. D 0 Sat Nov 17 14:56:20 2012
.. D 0 Sat Nov 17 14:56:20 2012
34968 blocks of size 1048576. 8217 blocks available
查询