Method: Rex::SSLScan::Scanner#initialize
- Defined in:
- lib/rex/sslscan/scanner.rb
#initialize(host, port = 443, context = {}, timeout = 5) ⇒ Scanner
Initializes the scanner object
22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
# File 'lib/rex/sslscan/scanner.rb', line 22 def initialize(host,port = 443,context = {},timeout=5) @host = host @port = port @timeout = timeout @context = context if check_opensslv2 == true @supported_versions = [:SSLv2, :SSLv3, :TLSv1] @sslv2 = true else @supported_versions = [:SSLv3, :TLSv1] @sslv2 = false end raise StandardError, "The scanner configuration is invalid" unless valid? end |