Sha256: 7ca5e59411b6b88517c7bde6937cf20328509793cf6deae71d4a05a3a562623e

Contents?: true

Size: 721 Bytes

Versions: 1

Compression:

Stored size: 721 Bytes

Contents

module SSLScan
  module Commands
    class Command
      attr_accessor :results, :options

      def initialize
        @results = []
      end

      def execute
        raise "Implement"
      end

      # Display Methods
      def display_header(host, port=443)
        printf "\nTesting SSL server #{host} on port #{port}"
      end

      def display_ciphers(scanner=nil)
        printf "\nSupported Server Cipher(s):\n"
        scanner.scan do |ssl_version, cipher_name, alg_length, status|
          unless options.no_failed && status == :failed
            printf "%12s %10s %10s %s\n", status, ssl_version, "#{alg_length} bits",  cipher_name
          end
        end
        scanner
      end

    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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