Linux command
nbtscan 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Scan network for NetBIOS names
nbtscan [192.168.1.0/24]
Scan single host
nbtscan [192.168.1.10]
Verbose output
nbtscan -v [192.168.1.0/24]
Human readable output
nbtscan -h [192.168.1.0/24]
Show all names
nbtscan -f [192.168.1.0/24]
Set timeout
nbtscan -t [5] [192.168.1.0/24]
说明
nbtscan sweeps a target IP address or CIDR range with NetBIOS Name Service (UDP port 137) queries and decodes the responses, printing the NetBIOS computer name, logged-in user, workgroup/domain, MAC address (if available), and registered service codes. It is the network-wide equivalent of nbtstat -A from Windows, useful for inventorying Windows and Samba hosts on a LAN. The default output is one host per line, suitable for piping into shells; -v shows every NetBIOS name table entry, -f prints the full table including type codes (00, 03, 20, 1B, 1C, ...) that map to workstations, file servers, domain controllers, etc. -h prints a more human-readable section per host.
参数
- -v
- Verbose mode.
- -h
- Human readable output.
- -f
- Show full NBT resource records.
- -t _SECS_
- Timeout in seconds.
- --help
- Display help information.
FAQ
What is the nbtscan command used for?
nbtscan sweeps a target IP address or CIDR range with NetBIOS Name Service (UDP port 137) queries and decodes the responses, printing the NetBIOS computer name, logged-in user, workgroup/domain, MAC address (if available), and registered service codes. It is the network-wide equivalent of nbtstat -A from Windows, useful for inventorying Windows and Samba hosts on a LAN. The default output is one host per line, suitable for piping into shells; -v shows every NetBIOS name table entry, -f prints the full table including type codes (00, 03, 20, 1B, 1C, ...) that map to workstations, file servers, domain controllers, etc. -h prints a more human-readable section per host.
How do I run a basic nbtscan example?
Run `nbtscan [192.168.1.0/24]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -v do in nbtscan?
Verbose mode.