Skip to content

Commit c121a4e

Browse files
David MaloneyDavid Maloney
authored andcommitted
Some more minor touchups
1 parent 8b6b2fb commit c121a4e

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

lib/rex/sslscan/result.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,8 @@ def add_cipher(version, cipher, key_length, status)
161161
end
162162

163163
strong_cipher_ctx = OpenSSL::SSL::SSLContext.new(version)
164+
# OpenSSL Directive For Strong Ciphers
165+
# See: http://www.rapid7.com/vulndb/lookup/ssl-weak-ciphers
164166
strong_cipher_ctx.ciphers = "ALL:!aNULL:!eNULL:!LOW:!EXP:RC4+RSA:+HIGH:+MEDIUM"
165167

166168
if strong_cipher_ctx.ciphers.flatten.include? cipher

lib/rex/sslscan/scanner.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ def validate_params(ssl_version, cipher)
187187
raise StandardError, "Your OS hates freedom! Your OpenSSL libs are compiled without SSLv2 support!"
188188
else
189189
unless OpenSSL::SSL::SSLContext.new(ssl_version).ciphers.flatten.include? cipher
190-
raise StandardError, "Must be a valid SSL Cipher for #{version}!"
190+
raise StandardError, "Must be a valid SSL Cipher for #{ssl_version}!"
191191
end
192192
end
193193
end

0 commit comments

Comments
 (0)