Land #10397, Added line in psexec_psh to support SMB2

GSoC/Meterpreter_Web_Console
Jacob Robles 2018-07-30 13:06:00 -05:00
commit 4ed2cc8189
No known key found for this signature in database
GPG Key ID: 3EC9F18F2B12401C
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 # Try and authenticate with given credentials
if connect if connect
begin begin
connect(versions: [2,1])
smb_login smb_login
rescue StandardError => autherror rescue StandardError => autherror
fail_with(Failure::NoAccess, "#{peer} - Unable to authenticate with given credentials: #{autherror}") fail_with(Failure::NoAccess, "#{peer} - Unable to authenticate with given credentials: #{autherror}")