Land #9185, Don't fail if mssql server does not support encryption

bug/bundler_fix
Brent Cook 2017-11-07 14:36:02 -06:00
commit 1f5dcfb610
No known key found for this signature in database
GPG Key ID: 1FFAA0B24B708F96
1 changed files with 5 additions and 2 deletions

View File

@ -634,7 +634,8 @@ module Metasploit
if idx > 0
encryption_mode = resp[idx, 1].unpack("C")[0]
else
raise "Unable to parse encryption req during pre-login, this may not be a MSSQL server"
framework_module.print_error("Unable to parse encryption req " \
"during pre-login, this may not be a MSSQL server")
encryption_mode = ENCRYPT_NOT_SUP
end
@ -681,7 +682,9 @@ module Metasploit
if idx > 0
encryption_mode = resp[idx, 1].unpack("C")[0]
else
raise "Unable to parse encryption req during pre-login, this may not be a MSSQL server"
framework_module.print_error("Unable to parse encryption req " \
"during pre-login, this may not be a MSSQL server")
encryption_mode = ENCRYPT_NOT_SUP
end
end
encryption_mode