Information Gathering
NBTScan is a program for scanning IP networks for NetBIOS name information. It sends a NetBIOS status query to each address in the supplied range and lists received information in human-readable form.
sudo apt install nbtscan
nbtscan [options] <target_range>
NBTscan is a tool for scanning IP networks to discover NetBIOS name information. It sends NetBIOS status queries to target hosts and displays computer names, user accounts, MAC addresses, and shared resources.
NetBIOS is a protocol used by Windows machines for local network communication. When enabled, it exposes system information that can be used for network mapping and identifying potential targets during penetration tests.
NBTscan is particularly useful for discovering Windows machines on a subnet, identifying logged-in users, and finding shared resources. Its speed and simplicity make it a quick way to map Windows network environments.
nbtscan 192.168.1.0/24Subnet lookup - Query every node on a subnet for NetBIOS names and MAC addressesnbtscan 192.168.1.100Single host - Query NetBIOS name information for one targetnbtscan -r 192.168.1.0/24Source port 137 - Use the NetBIOS source port for firewall-restricted networksnbtscan -v 192.168.1.100Verbose - Show the full NetBIOS name table for a hostnbtscan -f targets.txtFile input - Scan a list of IPs or ranges from a filenbtscan -O results.txt 192.168.1.0/24Output file - Write scan results to a filenbtscan -s : 192.168.1.0/24Script mode - Colon-delimited output for parsing in scriptsnbtscan -m 192.168.1.0/24MAC only - Include the human-readable MAC address in outputnbtscan -h 192.168.1.0/24Human readable - Print service names in verbose human-readable formnbtscan -t 500 192.168.1.0/24Timeout - Set the per-host response wait time in millisecondsnbtscan 192.168.1.0/24Scan network for NetBIOS namesnbtscan -r 192.168.1.0/24Resolve discovered names to IPsnbtscan -v 192.168.1.0/24Verbose output with detailsnbtscan -a 192.168.1.0/24Show all NetBIOS name typesnbtscan -s : 192.168.1.0/24Use space delimiterFind all Windows machines on a subnet through NetBIOS queries.
Discover logged-in users on Windows machines.
Identify shared resources and folders on Windows hosts.
Map Windows network topology through NetBIOS data.
NBTScan output displays NetBIOS name table information for each host on the network. Results include IP address, NetBIOS name, server status, logged-in users, and MAC addresses. The name type codes indicate the role of each machine (workstation, server, domain controller).
This tool is designed for authorized security testing, educational purposes, and legitimate network administration only. Unauthorized access to computer systems is illegal.