Land #6039, the rest of the cleanups
commit
fc09eaf517
|
@ -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 => []}
|
||||
|
|
Loading…
Reference in New Issue