File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed
metasploit/framework/mssql Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -634,8 +634,7 @@ 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 RunTimeError , "Unable to parse encryption req. " \
638
- "from server during prelogin"
637
+ raise "Unable to parse encryption req during pre-login, this may not be a MSSQL server"
639
638
encryption_mode = ENCRYPT_NOT_SUP
640
639
end
641
640
@@ -682,8 +681,7 @@ def mssql_prelogin(enc_error=false)
682
681
if idx > 0
683
682
encryption_mode = resp [ idx , 1 ] . unpack ( "C" ) [ 0 ]
684
683
else
685
- raise RuntimeError , "Unable to parse encryption " \
686
- "req during pre-login"
684
+ raise "Unable to parse encryption req during pre-login, this may not be a MSSQL server"
687
685
end
688
686
end
689
687
encryption_mode
Original file line number Diff line number Diff line change @@ -165,7 +165,7 @@ def nmap_add_ports
165
165
if nmap_validate_arg ( port_arg )
166
166
self . nmap_args << port_arg
167
167
else
168
- raise RunTimeError , "Argument is invalid"
168
+ raise "Argument is invalid"
169
169
end
170
170
end
171
171
You can’t perform that action at this time.
0 commit comments