Land #10397, Added line in psexec_psh to support SMB2

4.x
Jacob Robles 2018-07-30 13:06:00 -05:00 committed by Metasploit
parent 7e180a390c
commit 4b59552f8a
No known key found for this signature in database
GPG Key ID: CDFB5FA52007B954
1 changed files with 1 additions and 0 deletions

View File

@ -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}")