Rapid7 Vulnerability & Exploit Database

SMB Version Detection

Back to Search

SMB Version Detection

Created
05/30/2018

Description

Fingerprint and display version information about SMB servers. Protocol information and host operating system (if available) will be reported. Host operating system detection requires the remote server to support version 1 of the SMB protocol. Compression and encryption capability negotiation is only present in version 3.1.1.

Author(s)

  • hdm <x@hdm.io>
  • Spencer McIntyre
  • Christophe De La Fuente

Development

Module Options

To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':

msf > use auxiliary/scanner/smb/smb_version
msf auxiliary(smb_version) > show actions
    ...actions...
msf auxiliary(smb_version) > set ACTION < action-name >
msf auxiliary(smb_version) > show options
    ...show and set options...
msf auxiliary(smb_version) > run 

Time is precious, so I don’t want to do something manually that I can automate. Leveraging the Metasploit Framework when automating any task keeps us from having to re-create the wheel as we can use the existing libraries and focus our efforts where it matters.

– Jim O’Gorman | President, Offensive Security

;