cryptcheck/bin/check_https_alexa

22 lines
438 B
Plaintext
Raw Normal View History

2015-01-21 23:11:30 +00:00
#!/usr/bin/env ruby
$:.unshift 'lib'
require 'logging'
require 'cryptcheck'
2015-07-11 19:36:54 +00:00
GROUP_NAME = 'Top 100 Alexa'
2015-01-21 23:11:30 +00:00
::Logging.logger.root.appenders = ::Logging.appenders.stdout
::Logging.logger.root.level = :error
hosts = []
::File.open('top-1m.csv', 'r') do |file|
i = 0
while line = file.gets
2015-07-11 19:36:54 +00:00
hosts << [GROUP_NAME, line.strip.split(',')[1]]
2015-01-21 23:11:30 +00:00
i += 1
break if i == 100
end
end
::CryptCheck::Tls::Https.analyze hosts, 'output/alexa.html'