nbtscan
NBTscan scans IP networks for NetBIOS name information by sending status queries to each address in a supplied range. It lists IP address, NetBIOS computer name, logged-in user name, and MAC address for responding hosts.
Description
NBTscan is a program for scanning IP networks for NetBIOS name information. It sends NetBIOS status query to each address in supplied range and lists received information in human readable form. For each responded host it lists IP address, NetBIOS computer name, logged-in user name and MAC address (such as Ethernet).
This program is useful for security checks, network discovery and forensics investigations. It supports various output formats and options for verbose scanning, throttling, and script-friendly output.
The tool is particularly effective for enumerating SMB/NetBIOS services on Windows networks, aiding in reconnaissance and information gathering phases of penetration testing.
How It Works
NBTscan sends NetBIOS status queries (port 137) to each IP address in the specified range or file. It waits for responses (default 1000ms timeout) containing NetBIOS names, usernames, and MAC addresses, then parses and displays them. Options allow raw port usage (-r for port 137), retransmits, bandwidth throttling, and custom output formatting like /etc/hosts or lmhosts.
Installation
sudo apt install nbtscanFlags
Examples
nbtscan -r 192.168.1.0/24nbtscan 192.168.1.25-137nbtscan -v -s : 192.168.1.0/24nbtscan -f iplistnbtscan 192.168.1.1nbtscan -r -v 192.168.1.0/24nbtscan -f -