Overview
Imported from the upstream repository psc4re/NSE-scripts. smb-protocols script modified to apply check for CVE-2020-0796 by psc4re. Attempts to list the supported protocols and dialects of a SMB server. Packet check based on https://github.com/ollypwn/SMBGhost/ The script attempts to initiate a connection using the dialects:
- NT LM 0.12 (SMBv1)
- 2.02 (SMBv2)
- 2.10 (SMBv2)
- 3.00 (SMBv3)
- 3.02 (SMBv3)
- 3.11 (SMBv3) Additionally if SMBv1 is found enabled, it will mark it as insecure. This script is the successor to the (removed) smbv2-enabled script.