You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

check_ssh.rb 491B

1234567891011121314151617
  1. #!/usr/bin/env ruby
  2. $:.unshift File.expand_path File.join File.dirname(__FILE__), '../lib'
  3. require 'rubygems'
  4. require 'bundler/setup'
  5. require 'cryptcheck'
  6. name, port, level = case ARGV.length
  7. when 1 then [ARGV[0], 22, :info]
  8. when 2 then [ARGV[0], ARGV[1], :info]
  9. when 3 then [ARGV[0], ARGV[1], ARGV[3]]
  10. end
  11. ::CryptCheck::Logger.level = level
  12. server = ::CryptCheck::Ssh::Server.new name, port
  13. #grade = ::CryptCheck::Ssh::Grade.new server
  14. #::CryptCheck::Logger.info { '' }
  15. #grade.display