Description
This module supports running an SMB server which validates credentials, and then attempts to execute a relay attack against an MSSQL server on the configured RHOSTS hosts.
If the relay succeeds, an MSSQL session to the target will be created. This can be used by any modules that support MSSQL sessions, like `admin/mssql/mssql_enum`. The session can also be used to run arbitrary queries.
Supports SMBv2, SMBv3, and captures NTLMv1 as well as NTLMv2 hashes. SMBv1 is not supported - please see https://github.com/rapid7/metasploit-framework/issues/16261
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/server/relay/smb/to_mssqlmsf undefined(to_mssql) > show actions ...actions...msf undefined(to_mssql) > set ACTION < action-name >msf undefined(to_mssql) > show options ...show and set options...msf undefined(to_mssql) > runPrioritise with Active Threat Intelligence
With curated Threat Intelligence, you can see which vulnerabilities truly put you at risk, prioritize what matters most, and act before attackers do.
Explore Intelligence Hub