20 lines
413 B
Plaintext
20 lines
413 B
Plaintext
|
#!/usr/bin/env ruby
|
||
|
$:.unshift 'lib'
|
||
|
require 'logging'
|
||
|
require 'cryptcheck'
|
||
|
|
||
|
::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
|
||
|
hosts << ['Top 100 Alexa', line.strip.split(',')[1]]
|
||
|
i += 1
|
||
|
break if i == 100
|
||
|
end
|
||
|
end
|
||
|
|
||
|
::CryptCheck::Tls::Https.analyze hosts, 'output/alexa.html'
|