Sha256: 89952c6cb2a3a7237bbc27d9868a95c34ab3b5719c30887675d586c9fa4d2a61

Contents?: true

Size: 653 Bytes

Versions: 1

Compression:

Stored size: 653 Bytes

Contents

module SSLScan
  module Commands
    class Host < Command
      attr_accessor :hostname, :options

      def initialize(hostname, options)
        super()
        @hostname = hostname
        @options  = options
      end

      def execute
        parts = hostname.split(":")
        if parts.length == 2
          display_header(parts[0], parts[1])
          scanner = SSLScan::Scanner.new(parts[0], parts[1].to_i)
        else
          display_header(parts[0])
          scanner = SSLScan::Scanner.new(parts[0])
        end
        display_ciphers(scanner)
        @results << scanner.results
      end

    end # Host
  end # Commands
end # SSLScan

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ssl_scan-0.0.2 lib/ssl_scan/commands/host.rb