Added line to support SMB2
parent
4744fb01d9
commit
cdefb88770
|
@ -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}")
|
||||||
|
|
Loading…
Reference in New Issue