diff --git a/modules/exploits/windows/smb/psexec_psh.rb b/modules/exploits/windows/smb/psexec_psh.rb index f2046b2d17..abaeab492f 100644 --- a/modules/exploits/windows/smb/psexec_psh.rb +++ b/modules/exploits/windows/smb/psexec_psh.rb @@ -81,6 +81,7 @@ class MetasploitModule < Msf::Exploit::Remote # Try and authenticate with given credentials if connect begin + connect(versions: [2,1]) smb_login rescue StandardError => autherror fail_with(Failure::NoAccess, "#{peer} - Unable to authenticate with given credentials: #{autherror}")