nbtscan and nmap nbtstat For SMB scanning

nbtscan and nmap “nbtstat -s” For SMB scanning

MODULE 6:- Enumeration

  1. Secure Socket Layer SSL analysis with sslstrip in Kali Linux
  2. SNMP Enumeration Kali by snmpwalk tool and snmpenum
  3. nbtscan and nmap “nbtstat -s” For SMB scanning

SMB network scans by nbtscan scanner

nbtscan is a free network scanning software it is find out vulnerability after scanning network. it generate scanning files, contains the IP Address and other information of netbios block. it is amazing network scanning tools in kali Linux used for network security auditing and finding out vulnerability. 

SMB  enumeration

SMB enumeration is a technique to get all entities related NetBIOS, If the pentester is working at windows environment then he reveal the NetBIoS information through the nbtscan.

nbtscan for Linux

The nbtscan tool will generate a report that contains the IP address, NetBIOS computer name, services available, logged in username, and MAC address of the corresponding machines. The NetBIOS name is useful if you want to access the service provided by the machine using the NetBIOS protocol that is connected to an open share. Be careful as using this tool will generate a lot of traffic and it may be logged by the target machines. (Kali Linux- Assuring Security by Penetration Testing – Allen, Lee)

Nbtscan Usages

To see the available options for nbtscan just type nbtscan –h in the command line console.

Following options are available with nbtscan

                -v     verbose output. Print all names received from each host

                -d     dump packets. Print whole packet contents.

                -e     Format output in /etc/hosts format.

                -l      Format output in lmhosts format. Cannot be used with -v, -s or -h options.

                -t timeout    wait timeout milliseconds for response. Default 1000.

                -b bandwidth     Output throttling. Slow down output, it uses no more that bandwidth bps.

                                          Useful on slow links, so that ougoing queries don’t get dropped.

                -r    use local port 137 for scans. Win95 boxes respond to this only. You need to be root to                          use this option on Unix.

                -q    Suppress banners and error messages,

                -s separator        Script-friendly output. Don’t print column and record headers, separate                                                fields with separator.

                -h                      Print human-readable names for services. Can only be used with -v option.

                -m retransmits  Number of retransmits. Default 0.

                -f filename          Take IP addresses to scan from file filename. -f – makes nbtscan take IP                                              addresses from stdin.

                <scan_range>   what to scan. Can either be single IP like 192.168.1.1 or range of                                                         addresses in one of two form 

                                          xxx.xxx.xxx.xxx/xx or xxx.xxx.xxx.xxx-xxx.

Examples How to use nbtsccan

nbtscan -r 192.168.1.0/24

                Scans the whole C-class network.

nbtscan 192.168.1.25-137

                Scans a range from 192.168.1.25 to 192.168.1.137

nbtscan -v -s : 192.168.1.0/24

                Scans C-class network. Prints results in script-friendly format using colon as field separator

nbtscan -f iplist

                Scans IP addresses specified in file iplist.

Enumerate smb by nbtstat script in nmap

User Summary

Attempts to retrieve the target’s NetBIOS names and MAC address.

By default, the script displays the name of the computer and the logged-in user; if the verbosity is turned up, it displays all names the system thinks it owns.

Example Usage

sudo nmap -sU –script nbstat.nse -p137 <host>

nbtstat -s

Leave a Reply

Your email address will not be published. Required fields are marked *

Scroll to top