We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc7c02e commit 8b6b2fbCopy full SHA for 8b6b2fb
lib/rex/sslscan/scanner.rb
@@ -183,12 +183,12 @@ def validate_params(ssl_version, cipher)
183
unless @supported_versions.include? ssl_version
184
raise StandardError, "SSL Version must be one of: #{@supported_versions.to_s}"
185
end
186
- begin
+ if ssl_version == :SSLv2 and sslv2 == false
187
+ raise StandardError, "Your OS hates freedom! Your OpenSSL libs are compiled without SSLv2 support!"
188
+ else
189
unless OpenSSL::SSL::SSLContext.new(ssl_version).ciphers.flatten.include? cipher
190
raise StandardError, "Must be a valid SSL Cipher for #{version}!"
191
- rescue
- raise StandardError, "Your OS hates freedom! Your OpenSSL libs are compiled without SSLv2 support!"
192
193
194
0 commit comments