Added line to support SMB2

GSoC/Meterpreter_Web_Console
bwatters-r7 2018-07-30 12:37:06 -05:00
parent 4744fb01d9
commit cdefb88770
No known key found for this signature in database
GPG Key ID: ECC0F0A52E65F268
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}")