NetBIOS Share Scanner

NetBIOS Share Scanner Description

This tool can be used to check Windows workstations and servers for available NetBIOS shares, i.e. network folders and network printers. In addition to Windows 11, Windows 10, Windows XP, Windows 8, and Windows 7, shares can be found on Mac OS X and Linux.

Shares (network folders) can be in your home network, these folders can contain movies, files and pictures.

Having open shared resources widely available on the network can lead to the loss of sensitive information.

This can lead to exploits running when the vulnerable and outdated NetBIOS protocol is running.

Another way public folders are exploited is that attackers can post illegal content such as copyrighted music and movies.

It is recommended that you scan your local and public IP addresses for open NetBIOS shares and ensure that access to them is blocked by firewall settings. Make your network folders accessible only to trusted users.

Example of a misuse scenario: On your home network, you have set up a simple login without a password on a network folder. Then, when you connected to a public network (for example, a laptop in a hotel) you forgot to password-protect or firewall the shared resources. As a result, your shares (network folders) will be wide open to the whole world. With the NetBIOS Share Scanner, you can scan your own computer or your entire network for open shares.

You can scan both local IP addresses and public IP addresses.

This tool runs on linux/unix and uses the smbclient (samba.org) for login.

On successful login, the tool tries to get a list of network drives and for each drive tries to get a list of directories.

You can scan a single target machine or your entire network.

Homepage: https://www.secpoint.com/netbios-share-scanner.html

Author: SecPoint ApS

License: BSD

NetBIOS Share Scanner Help

Usage:

netbios-shares-scanner TARGET [USERNAME%PASSWORD]

The program has no options – you must specify the TARGET of scanning, additionally you can specify a username and password for logging in to NetBIOS network resources.

TARGET can be:

  • single IP address, for example 192.168.0.60
  • range in NET/MASK format, for example 192.168.1.0/24
  • range in the format START_IP-END_IP, 192.168.1.50-192.168.1.60

NetBIOS Share Scanner Usage Example

Scan 192.168.0.60 for NetBIOS network resources and, if found, try to log in with Guest credentials:

netbios-share-scanner 192.168.0.60

Scan 192.168.1.0/24 for NetBIOS network resources and, if found, try to log in with Guest credentials:

netbios-share-scanner 192.168.1.0/24

Scan the range 192.168.1.50-192.168.1.60:

netbios-share-scanner 192.168.1.50-192.168.1.60

Scan 192.168.1.0/24 for NetBIOS network shares and if found try to login with username Administrator and password Aa1:

netbios-share-scanner 192.168.1.60 Administrator%Aa1

Scan the 192.168.1.1/24 range for the detected NetBIOS network resources, try to log in to them with credentials USER_NAME and PASSWORD, save the results to the results.txt file ( > results.txt) :

netbios-share-scanner 192.168.1.1/24 ИМЯ_ПОЛЬЗОВАТЕЛЯ%ПАРОЛЬ > results.txt

How to install NetBIOS Share Scanner

Installation on Kali Linux

sudo apt install python2-minimal smbclient
curl --output netbios-shares-scanner-1.0.zip https://www.secpoint.com/freetools/netbios-shares-scanner-1.0.zip
unzip netbios-shares-scanner-1.0.zip

Further, there are 2 options for launching NetBIOS Share Scanner – without installation and with installation. Choose one of them.

Option 1: Run NetBIOS Share Scanner without installation:

cd nb10
python2 ./netbios-shares-scanner.py

Option 2: Run NetBIOS Share Scanner with installation:

sudo mv nb10 /usr/share/netbios-share-scanner/

Copy and paste the lines of the following command as a whole:

echo '#!/bin/sh
cd /usr/share/netbios-share-scanner
exec python2 netbios-shares-scanner.py "$@"' > netbios-share-scanner

The following commands can again be copied line by line:

chmod +x netbios-share-scanner
sudo mv netbios-share-scanner /usr/bin/netbios-share-scanner

Installation on Debian, Linux Mint, Ubuntu

sudo apt update
sudo apt install python2-minimal smbclient
curl --output netbios-shares-scanner-1.0.zip https://www.secpoint.com/freetools/netbios-shares-scanner-1.0.zip
unzip netbios-shares-scanner-1.0.zip

Further, there are 2 options for launching NetBIOS Share Scanner – without installation and with installation. Choose one of them.

Option 1: Run NetBIOS Share Scanner without installation:

cd nb10
python2 ./netbios-shares-scanner.py

Option 2: Run NetBIOS Share Scanner with installation:

sudo mv nb10 /usr/share/netbios-share-scanner/

Copy and paste the lines of the following command as a whole:

echo '#!/bin/sh
cd /usr/share/netbios-share-scanner
exec python2 netbios-shares-scanner.py "$@"' > netbios-share-scanner

The following commands can again be copied line by line:

chmod +x netbios-share-scanner
sudo mv netbios-share-scanner /usr/bin/netbios-share-scanner

Installation on BlackArch

The program is pre-installed on BlackArch. To install in minimal builds run:

sudo pacman -S netbios-share-scanner

NetBIOS Share Scanner Screenshots

NetBIOS Share Scanner Tutorials

Related tools

Recommended for you:

Comments are Closed

Рейтинг@Mail.ru