Script smb-protocols

Script types: hostrule
Categories: safe, discovery
Download: https://svn.nmap.org/nmap/scripts/smb-protocols.nse

Script Summary

Attempts to list the supported protocols and dialects of a SMB server.

The script attempts to initiate a connection using the dialects:

  • NT LM 0.12 (SMBv1)
  • 2.0.2 (SMBv2)
  • 2.1 (SMBv2)
  • 3.0 (SMBv3)
  • 3.0.2 (SMBv3)
  • 3.1.1 (SMBv3)

Additionally if SMBv1 is found enabled, it will mark it as insecure. This script is the successor to the (removed) smbv2-enabled script.

Script Arguments

randomseed, smbbasic, smbport, smbsign

See the documentation for the smb library.

smbdomain, smbhash, smbnoguest, smbpassword, smbtype, smbusername

See the documentation for the smbauth library.

Example Usage

  • nmap -p445 --script smb-protocols <target>
  • nmap -p139 --script smb-protocols <target>
    

Script Output

| smb-protocols:
|   dialects:
|     NT LM 0.12 (SMBv1) [dangerous, but default]
|     2.0.2
|     2.1
|     3.0
|     3.0.2
|_    3.1.1

Requires


Author:

  • Paulino Calderon

License: Same as Nmap--See https://nmap.org/book/man-legal.html