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_smtp 420B

1234567891011121314151617
  1. #!/usr/bin/env ruby
  2. $:.unshift 'lib'
  3. require 'logging'
  4. require 'cryptcheck'
  5. name = ARGV[0]
  6. unless name
  7. ::CryptCheck::Tls::Smtp.analyze_from_file 'output/smtp.yml', 'output/smtp.html'
  8. else
  9. ::Logging.logger.root.appenders = ::Logging.appenders.stdout
  10. ::Logging.logger.root.level = :warn
  11. server = ::CryptCheck::Tls::Smtp::Server.new(ARGV[0], ARGV[1] || 25)
  12. p grade = ::CryptCheck::Tls::Smtp::Grade.new(server)
  13. end