File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
lib/metasploit/framework/mssql Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -634,7 +634,8 @@ def mssql_prelogin(enc_error=false)
634
634
if idx > 0
635
635
encryption_mode = resp [ idx , 1 ] . unpack ( "C" ) [ 0 ]
636
636
else
637
- raise "Unable to parse encryption req during pre-login, this may not be a MSSQL server"
637
+ framework_module . print_error ( "Unable to parse encryption req " \
638
+ "during pre-login, this may not be a MSSQL server" )
638
639
encryption_mode = ENCRYPT_NOT_SUP
639
640
end
640
641
@@ -681,7 +682,9 @@ def mssql_prelogin(enc_error=false)
681
682
if idx > 0
682
683
encryption_mode = resp [ idx , 1 ] . unpack ( "C" ) [ 0 ]
683
684
else
684
- raise "Unable to parse encryption req during pre-login, this may not be a MSSQL server"
685
+ framework_module . print_error ( "Unable to parse encryption req " \
686
+ "during pre-login, this may not be a MSSQL server" )
687
+ encryption_mode = ENCRYPT_NOT_SUP
685
688
end
686
689
end
687
690
encryption_mode
You can’t perform that action at this time.
0 commit comments