Skip to content

Commit fc09eaf

Browse files
author
Brent Cook
committed
Land rapid7#6039, the rest of the cleanups
2 parents 5882904 + 711f11a commit fc09eaf

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

lib/msf/core/exploit/mssql.rb

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -387,16 +387,15 @@ def mssql_login(user='sa', pass='', db='')
387387

388388
begin
389389
# Send a prelogin packet and check that encryption is not enabled
390-
if mssql_prelogin() != ENCRYPT_NOT_SUP
391-
print_error("Encryption is not supported")
390+
if mssql_prelogin != ENCRYPT_NOT_SUP
391+
print_error('Encryption is not supported')
392392
return false
393393
end
394394
rescue EOFError
395-
print_error("Probable server or network failure.")
395+
print_error('Probable server or network failure')
396396
return false
397397
end
398398

399-
400399
if datastore['USE_WINDOWS_AUTHENT']
401400

402401
idx = 0
@@ -632,10 +631,9 @@ def mssql_login(user='sa', pass='', db='')
632631
begin
633632
resp = mssql_send_recv(pkt)
634633
rescue EOFError
635-
print_error("Probable server or network failure.")
634+
print_error('Probable server or network failure')
636635
return false
637636
end
638-
639637
end
640638

641639
info = {:errors => []}

0 commit comments

Comments
 (0)