Fix raise(s) in MSSQL client aborting mssql_login

bug/bundler_fix^2
William Vu 2017-11-07 14:30:47 -06:00
parent fc87ee08d9
commit fbbc8da8fb
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