nbtscan-unixwiz
nbtscan-unixwiz scans for open NETBIOS nameservers on local or remote TCP/IP networks to identify potential open shares. It operates like the Windows nbtstat tool but supports scanning address ranges.
Description
nbtscan-unixwiz is a command-line tool for discovering NETBIOS nameservers, providing a first step in identifying open network shares. It enumerates services such as Workstation Service, Messenger Service, File Server Service, Master Browser, Domain Name, and Browser Service Elections across target IP ranges or individual hosts.
Use cases include network reconnaissance during penetration testing, mapping Windows workgroups or domains, and detecting legacy systems exposing NETBIOS. The tool displays hostnames, workgroup names, and service types, helping identify sharing-enabled systems.
It is particularly useful for scanning class C subnets or specific address ranges without requiring inverse DNS lookups, making it efficient for large scans.
How It Works
nbtscan-unixwiz sends UDP queries to port 137 (NETBIOS Name Service) across specified IP targets, parsing full NBT resource record responses including node types (UNIQUE/GROUP), service codes (e.g., <00> Workstation, <20> File Server), and optional MAC addresses. It handles ranges in /nbits or octet-range notation, with configurable timeouts and verbosity for no-response handling.
Installation
sudo apt install nbtscan-unixwizFlags
Examples
nbtscan-unixwiz -n 192.168.0.100-110nbtscan-unixwiz -f 192.168.0.38nbtscan-unixwiz 192.168.0.100-110nbtscan-unixwiz 192.168.12.0/24nbtscan-unixwiz 192.168.12.64-97nbtscan-unixwiz -f -m 192.168.0.38nbtscan-unixwiz -v 192.168.0.100-110