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.
| Command | Purpose |
|---|---|
nbtscan <scan-range> | Scan one host, CIDR, or supported address range. |
nbtscan -v <scan-range> | Print every NetBIOS name received. |
nbtscan -r <scan-range> | Use local source port 137 when required. |
nbtscan -f <target-file> | Scan addresses listed in an approved file. |
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 -v 192.168.1.0/24Verbose output with detailsnbtscan -a 192.168.1.0/24Show all NetBIOS name typesnbtscan -e : 192.168.1.0/24Use tab delimiternbtscan -f file.txtRead targets from filenbtscan -l logfile.txt 192.168.1.0/24Log output to filenbtscan -n 192.168.1.0/24Show only IP and hostnamenbtscan -u 192.168.1.0/24Show only unique hostsnbtscan -T 5 192.168.1.0/24Set timing template (1=paranoid 5=insane)nbtscan -d 192.168.1.0/24Debug outputFind 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.
Information Gathering
Learn how to use Enum4linux to enumerate Windows and Samba systems over SMB: install it on Kali Linux, run your first scan, read the users, shares, groups and password policy it returns, and switch to enum4linux-ng for modern hosts that block null sessions.
Information Gathering
enum4linux-ng is a next-generation version of the classic enum4linux script, rewritten from scratch in Python 3 to parse and enumerate Windows/Samba information efficiently with cleaner output formats.
Information Gathering
SMBMap allows users to flash out Samba share drives across entire domains, mapping access rights, folder structural read/write lists, file downloads, and upload tests.
Information Gathering
Masscan is an internet-scale port scanner. It can scan the entire Internet in under 6 minutes, transmitting up to 10 million packets per second utilizing asynchronous transmit setups.
Information Gathering
Netdiscover is an active/passive ARP reconnaissance tool for discovering live hosts on a network. It sends ARP requests and listens for responses to identify devices, IP addresses, MAC addresses, and vendor information without performing port scans.
Information Gathering
Learn how to use Nmap, the free open-source network scanner: run your first port scan, discover live hosts, detect services and operating systems, and check for vulnerabilities with NSE scripts — a beginner tutorial for Kali Linux.
A complete beginner-to-advanced SMB enumeration guide covering discovery, NetBIOS, share access, user enumeration, automation, troubleshooting, workflow design, and SMB tool selection.
Guides · BeginnerLearn the fundamentals of Windows network reconnaissance including host discovery, port scanning, NetBIOS enumeration, and Active Directory mapping using Kali Linux tools.
Tools · BeginnerLearn Enum4Linux for enumerating Windows and Samba systems including user lists, shares, groups, and security policy information.
Guides · AdvancedGuide to performing reconnaissance across large enterprise Windows networks including domain enumeration, Active Directory mapping, and automated tool integration.
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.