In order to enumerate NetBIOS shares on a Windows machine using command-line tools, here are some effective methods:
1. Net View:
The net view command lists shared resources on a remote or local system.
net view \\<target_ip_or_hostname>
This will display the available NetBIOS shares on the specified machine.
2. Net Share:
The net share command lists all the shares available on the local machine.
net share
This shows the shares set up on your own machine.
3. NBTStat:
The nbtstat command is used to gather information about NetBIOS over TCP/IP (NetBT).
nbtstat -A <target_ip>
This gives detailed information about the NetBIOS name table on the target machine, which can help identify shared resources.
4. PowerShell (Get-WmiObject):
Using PowerShell, you can query shared folders remotely.
Get-WmiObject -Class Win32_Share -ComputerName <target_ip>
This provides a list of shared folders on the remote machine, including the name and path of each share.
5. NBTScan:
NBTScan is a tool that scans a range of IP addresses for active NetBIOS shares.
nbtscan <target_range>
This tool is useful for network-wide enumeration of NetBIOS shares.