Method: Rex::SSLScan::Scanner#test_ssl
- Defined in:
- lib/rex/sslscan/scanner.rb
#test_ssl ⇒ Object
75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 |
# File 'lib/rex/sslscan/scanner.rb', line 75 def test_ssl begin scan_client = Rex::Socket::Tcp.create( 'Context' => @context, 'PeerHost' => @host, 'PeerPort' => @port, 'SSL' => true, 'SSLVersion' => :SSLv23, 'Timeout' => @timeout ) rescue ::Exception => e return :rejected ensure if scan_client scan_client.close end end return :accepted end |