Enumeration · Module 04

NbtScan

Scan a network for NetBIOS names and MAC addresses.

ModuleModule 04PhaseEnumerationTypeDefensive / AnalysisPlatformKali Linux

Definition

nbtscan is a command-line tool used to query NetBIOS name information from Windows systems and other devices that support NetBIOS over TCP/IP.

Primary purpose

Discover NetBIOS names, computer names, workgroups, and related network information.

Cybersecurity use

Network reconnaissance, Windows network discovery, and authorized security assessments.

Key features

NetBIOS name discovery

Retrieves available NetBIOS name information.

Computer identification

Helps identify hostnames on legacy Windows networks.

Workgroup discovery

May reveal workgroup or domain names.

Multiple host scanning

Scans many IP addresses in a range.

Command-line operation

Supports terminal scanning and scripting.

Important commands

nbtscan -h

Show help and options.

nbtscan 192.168.1.10

Query NetBIOS info from one IP.

nbtscan 192.168.1.0/24

Scan an entire subnet.

nbtscan -v 192.168.1.10

Verbose output (where supported).

nbtscan -r 192.168.1.0/24

Use NetBIOS status queries over the range.

Practical examples

01Scan a single host
command
nbtscan 192.168.1.10

Purpose Queries the target for NetBIOS name info.

02Scan a subnet
command
nbtscan 192.168.1.0/24

Purpose Scans the subnet for systems responding to NetBIOS.

03Status queries over a range
command
nbtscan -r 192.168.1.0/24

Purpose Uses the NetBIOS status query option across the range.

Important points

  • NetBIOS: A legacy interface for name services on some local networks.
  • UDP 137 / TCP 139: 137 = NetBIOS Name Service; 139 = older SMB over NetBIOS.
  • Modern networks: Many use DNS and SMB over TCP 445 without NetBIOS.
  • Firewall restrictions: Firewalls may block NetBIOS and prevent discovery.
  • Authorization: Scan only systems you are permitted to assess.

Common use cases

Windows network discovery

Identify NetBIOS-enabled hosts.

Hostname enumeration

Collect available computer names.

Workgroup identification

Discover exposed workgroup information.

Security auditing

Assess unnecessary NetBIOS exposure.

Learn it in context

This tool is taught in Module 04

Read the full written notes, with diagrams, defense and detection.

Open Module 04