Method: Rex::SSLScan::Scanner#test_cipher
- Defined in:
- lib/rex/sslscan/scanner.rb
#test_cipher(ssl_version, cipher) ⇒ Symbol
Tests the specified SSL Version and Cipher against the configured target
119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 |
# File 'lib/rex/sslscan/scanner.rb', line 119 def test_cipher(ssl_version, cipher) validate_params(ssl_version,cipher) begin scan_client = Rex::Socket::Tcp.create( 'Context' => @context, 'PeerHost' => @host, 'PeerPort' => @port, 'SSL' => true, 'SSLVersion' => ssl_version, 'SSLCipher' => cipher, 'Timeout' => @timeout ) rescue ::Exception => e return :rejected ensure if scan_client scan_client.close end end return :accepted end |