Browse Source

Manager LD_LIBRARY_PATH from bin

master
Nicolas Vinot 4 years ago
parent
commit
c3bb0213bd
13 changed files with 86 additions and 73 deletions
  1. 0
    19
      bin/check_https
  2. 1
    0
      bin/check_https
  3. 19
    0
      bin/check_https.rb
  4. 0
    21
      bin/check_https_alexa
  5. 1
    0
      bin/check_https_alexa
  6. 23
    0
      bin/check_https_alexa.rb
  7. 0
    17
      bin/check_smtp
  8. 1
    0
      bin/check_smtp
  9. 19
    0
      bin/check_smtp.rb
  10. 0
    16
      bin/check_xmpp
  11. 1
    0
      bin/check_xmpp
  12. 18
    0
      bin/check_xmpp.rb
  13. 3
    0
      bin/runner

+ 0
- 19
bin/check_https View File

@@ -1,19 +0,0 @@
#!/usr/bin/env ruby
$:.unshift 'lib'
require 'logging'
require 'cryptcheck'

name = ARGV[0] || 'index'
file = ::File.join 'output', "#{name}.yml"

if ::File.exist? file
::CryptCheck::Tls::Https.analyze_from_file "output/#{name}.yml", "output/#{name}.html"
else
::Logging.logger.root.appenders = ::Logging.appenders.stdout
::Logging.logger.root.level = :warn

server = ::CryptCheck::Tls::Https::Server.new(ARGV[0], ARGV[1] || 443)
p grade = ::CryptCheck::Tls::Https::Grade.new(server)
end



+ 1
- 0
bin/check_https View File

@@ -0,0 +1 @@
runner

+ 19
- 0
bin/check_https.rb View File

@@ -0,0 +1,19 @@
#!/usr/bin/env ruby
$:.unshift File.expand_path File.join File.dirname(__FILE__), '../lib'
require 'rubygems'
require 'bundler/setup'
require 'logging'
require 'cryptcheck'

name = ARGV[0] || 'index'
file = ::File.join 'output', "#{name}.yml"

if ::File.exist? file
::CryptCheck::Tls::Https.analyze_from_file "output/#{name}.yml", "output/#{name}.html"
else
::Logging.logger.root.appenders = ::Logging.appenders.stdout
::Logging.logger.root.level = :warn

server = ::CryptCheck::Tls::Https::Server.new(ARGV[0], ARGV[1] || 443)
p grade = ::CryptCheck::Tls::Https::Grade.new(server)
end

+ 0
- 21
bin/check_https_alexa View File

@@ -1,21 +0,0 @@
#!/usr/bin/env ruby
$:.unshift 'lib'
require 'logging'
require 'cryptcheck'

GROUP_NAME = 'Top 100 Alexa'

::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 << [GROUP_NAME, line.strip.split(',')[1]]
i += 1
break if i == 100
end
end

::CryptCheck::Tls::Https.analyze hosts, 'output/alexa.html'

+ 1
- 0
bin/check_https_alexa View File

@@ -0,0 +1 @@
runner

+ 23
- 0
bin/check_https_alexa.rb View File

@@ -0,0 +1,23 @@
#!/usr/bin/env ruby
$:.unshift File.expand_path File.join File.dirname(__FILE__), '../lib'
require 'rubygems'
require 'bundler/setup'
require 'logging'
require 'cryptcheck'

GROUP_NAME = 'Top 100 Alexa'

::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 << [GROUP_NAME, line.strip.split(',')[1]]
i += 1
break if i == 100
end
end

::CryptCheck::Tls::Https.analyze hosts, 'output/alexa.html'

+ 0
- 17
bin/check_smtp View File

@@ -1,17 +0,0 @@
#!/usr/bin/env ruby
$:.unshift 'lib'
require 'logging'
require 'cryptcheck'

name = ARGV[0]
unless name
::CryptCheck::Tls::Smtp.analyze_from_file 'output/smtp.yml', 'output/smtp.html'
else
::Logging.logger.root.appenders = ::Logging.appenders.stdout
::Logging.logger.root.level = :warn

server = ::CryptCheck::Tls::Smtp::Server.new(ARGV[0], ARGV[1] || 25)
p grade = ::CryptCheck::Tls::Smtp::Grade.new(server)
end



+ 1
- 0
bin/check_smtp View File

@@ -0,0 +1 @@
runner

+ 19
- 0
bin/check_smtp.rb View File

@@ -0,0 +1,19 @@
#!/usr/bin/env ruby
$:.unshift File.expand_path File.join File.dirname(__FILE__), '../lib'
require 'rubygems'
require 'bundler/setup'
require 'logging'
require 'cryptcheck'

name = ARGV[0]
unless name
::CryptCheck::Tls::Smtp.analyze_from_file 'output/smtp.yml', 'output/smtp.html'
else
::Logging.logger.root.appenders = ::Logging.appenders.stdout
::Logging.logger.root.level = :warn

server = ::CryptCheck::Tls::Smtp::Server.new(ARGV[0], ARGV[1] || 25)
p grade = ::CryptCheck::Tls::Smtp::Grade.new(server)
end



+ 0
- 16
bin/check_xmpp View File

@@ -1,16 +0,0 @@
#!/usr/bin/env ruby
$:.unshift 'lib'
require 'logging'
require 'cryptcheck'

name = ARGV[0]
if name
::Logging.logger.root.appenders = ::Logging.appenders.stdout
::Logging.logger.root.level = :warn

server = ::CryptCheck::Tls::Xmpp::Server.new(name, ARGV[1] || :s2s)
p grade = ::CryptCheck::Tls::Xmpp::Grade.new(server)
else
::CryptCheck::Tls::Xmpp.analyze_from_file 'output/xmpp.yml', 'output/xmpp.html'
end


+ 1
- 0
bin/check_xmpp View File

@@ -0,0 +1 @@
runner

+ 18
- 0
bin/check_xmpp.rb View File

@@ -0,0 +1,18 @@
#!/usr/bin/env ruby
$:.unshift File.expand_path File.join File.dirname(__FILE__), '../lib'
require 'rubygems'
require 'bundler/setup'
require 'logging'
require 'cryptcheck'

name = ARGV[0]
if name
::Logging.logger.root.appenders = ::Logging.appenders.stdout
::Logging.logger.root.level = :warn

server = ::CryptCheck::Tls::Xmpp::Server.new(name, ARGV[1] || :s2s)
p grade = ::CryptCheck::Tls::Xmpp::Grade.new(server)
else
::CryptCheck::Tls::Xmpp.analyze_from_file 'output/xmpp.yml', 'output/xmpp.html'
end


+ 3
- 0
bin/runner View File

@@ -0,0 +1,3 @@
#!/bin/bash
DIR="$(readlink -m "$(dirname "$0")")"
LD_LIBRARY_PATH="${DIR}/../lib" "${0}.rb" $*

Loading…
Cancel
Save