findsmb
rose1 发表于 2020-09-14 09:01浏览次数:
在类似Unix的操作系统上,findsmb命令列出有关在子网上响应SMB名称查询的计算机的信息。
On Unix-like operating systems, the findsmb command lists information about machines that respond to SMB name queries on a subnet.
目录:
1 findsmb 运行系统环境
2 findsmb 说明
3 findsmb 语法
4 findsmb 例子
findsmb 运行系统环境
findsmb 说明
该findsmb软件是一个Perl的 脚本,包括作为的一部分桑巴套件。findsmb是一个perl脚本,它输出有关子网上响应SMB名称查询请求的计算机的几条信息。它使用nmblookup和smbclient获得此信息。
The findsmb software is a perl script, included as part of the Sambasuite. findsmb is a perl script that prints out several pieces of information about machines on a subnet that respond to SMB name query requests. It uses nmblookup and smbclient to obtain this information.
findsmb 语法
findsmb [subnet-broadcast-address]
选件
-r
|
控制findsmb在尝试查找在远程计算机上注册的Netbios名称时是否考虑Windows95中的错误。默认情况下禁用此选项,因为它仅特定于Windows 95和Windows 95计算机。如果设置,将使用-B选项调用nmblookup。
|
子网广播地址
|
如果没有此选项,findsmb将探测运行findsmb的计算机的子网。此值作为-B选项的一部分传递给nmblookup。
|
输出量
findsmb的输出列出了响应任何名称的初始nmblookup的所有计算机的以下信息:
-
IP地址
-
NetBIOS名称
-
工作组名称
-
操作系统
-
SMB服务器版本
对于作为该工作组的本地主浏览器的计算机,工作组名之前将有一个“ + ” 。对于作为该工作组的域主浏览器的计算机,工作组名称前将有一个“ * ” 。运行Windows for Workgroups,Windows 95或Windows 98的计算机将不显示有关操作系统或服务器版本的任何信息。
带-r选项的命令必须在没有运行nmbd的系统上运行。如果nmbd在系统上运行,则仅会获得计算机的IP 地址和DNS名称。要从Windows 95和Windows 98计算机上获得正确的响应,必须在没有运行nmbd的计算机上以root身份并使用-r选项运行命令。
findsmb [subnet-broadcast-address]
Options
-r
|
Controls whether findsmb takes bugs in Windows95 into account when trying to find a Netbios name registered of the remote machine. This option is disabled by default because it is specific to Windows 95 and Windows 95 machines only. If set, nmblookup will be called with -B option.
|
subnet-broadcast-address
|
Without this option, findsmb will probe the subnet of the machine where findsmb is run. This value is passed to nmblookup as part of the -B option.
|
Output
The output of findsmb lists the following information for all machines that respond to the initial nmblookup for any name:
-
IP address
-
NetBIOS name
-
Workgroup name
-
operating system
-
SMB server version
There will be a "+" in front of the workgroup name for machines that are local master browsers for that workgroup. There will be an "*" in front of the workgroup name for machines that are the domain master browser for that workgroup. Machines that are running Windows for Workgroups, Windows 95 or Windows 98 will not show any information about the operating system or server version.
The command with -r option must be run on a system without nmbd running. If nmbd is running on the system, you will only get the IPaddress and the DNS name of the machine. To get proper responses from Windows 95 and Windows 98 machines, the command must be run as root and with -r option on a machine without nmbd running.
findsmb 例子
findsmb
findsmb显示类似于以下输出的信息:
IP ADDR NETBIOS NAME WORKGROUP/OS/VERSION
-----------------------------------------------------------------------------------
192.168.35.10 MINESET-TEST1 [DMVENGR]
192.168.35.55 LINUXBOX *[MYGROUP] [Unix] [Samba 2.0.6]
192.168.35.56 HERBNT2 [HERB-NT]
192.168.35.63 GANDALF [MVENGR] [Unix] [Samba 2.0.5a for IRIX]
192.168.35.65 SAUNA [WORKGROUP] [Unix] [Samba 1.9.18p10]
192.168.35.71 FROGSTAR [ENGR] [Unix] [Samba 2.0.0 for IRIX]
192.168.35.78 BUDDYFRIEND +[HERB]
192.168.35.88 SCNT2 +[MVENGR] [Windows NT 4.0] [NT LAN Manager
findsmb
findsmb displays information similar to the output below:
IP ADDR NETBIOS NAME WORKGROUP/OS/VERSION
-----------------------------------------------------------------------------------
192.168.35.10 MINESET-TEST1 [DMVENGR]
192.168.35.55 LINUXBOX *[MYGROUP] [Unix] [Samba 2.0.6]
192.168.35.56 HERBNT2 [HERB-NT]
192.168.35.63 GANDALF [MVENGR] [Unix] [Samba 2.0.5a for IRIX]
192.168.35.65 SAUNA [WORKGROUP] [Unix] [Samba 1.9.18p10]
192.168.35.71 FROGSTAR [ENGR] [Unix] [Samba 2.0.0 for IRIX]
192.168.35.78 BUDDYFRIEND +[HERB]
192.168.35.88 SCNT2 +[MVENGR] [Windows NT 4.0] [NT LAN Manager