Land #6039, the rest of the cleanups

bug/bundler_fix
Brent Cook 2015-10-02 18:41:08 -05:00
commit fc09eaf517
No known key found for this signature in database
GPG Key ID: 1FFAA0B24B708F96
1 changed files with 4 additions and 6 deletions

View File

@ -387,16 +387,15 @@ module Exploit::Remote::MSSQL
begin
# Send a prelogin packet and check that encryption is not enabled
if mssql_prelogin() != ENCRYPT_NOT_SUP
print_error("Encryption is not supported")
if mssql_prelogin != ENCRYPT_NOT_SUP
print_error('Encryption is not supported')
return false
end
rescue EOFError
print_error("Probable server or network failure.")
print_error('Probable server or network failure')
return false
end
if datastore['USE_WINDOWS_AUTHENT']
idx = 0
@ -632,10 +631,9 @@ module Exploit::Remote::MSSQL
begin
resp = mssql_send_recv(pkt)
rescue EOFError
print_error("Probable server or network failure.")
print_error('Probable server or network failure')
return false
end
end
info = {:errors => []}