Skip to content

Commit f42b980

Browse files
committed
fix misspelled RuntimeError
1 parent e70ca74 commit f42b980

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

lib/metasploit/framework/mssql/client.rb

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -634,8 +634,7 @@ def mssql_prelogin(enc_error=false)
634634
if idx > 0
635635
encryption_mode = resp[idx, 1].unpack("C")[0]
636636
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"
639638
encryption_mode = ENCRYPT_NOT_SUP
640639
end
641640

@@ -682,8 +681,7 @@ def mssql_prelogin(enc_error=false)
682681
if idx > 0
683682
encryption_mode = resp[idx, 1].unpack("C")[0]
684683
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"
687685
end
688686
end
689687
encryption_mode

lib/msf/core/auxiliary/nmap.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ def nmap_add_ports
165165
if nmap_validate_arg(port_arg)
166166
self.nmap_args << port_arg
167167
else
168-
raise RunTimeError, "Argument is invalid"
168+
raise "Argument is invalid"
169169
end
170170
end
171171

0 commit comments

Comments
 (0)