Sha256: 7b05fb1302f958c23bd7b1f0d9658e028fb72c495698a00955601a53b753a996
Contents?: true
Size: 761 Bytes
Versions: 1
Compression:
Stored size: 761 Bytes
Contents
module SSLScan module Commands class Targets < Command attr_accessor :file, :hosts def initialize(filename="", options) super() @file = File.read(filename) @hosts = @file.split("\n").map(&:strip).select { |h| h.length > 0 } @options = options end def execute hosts.each do |host| parts = host.split(":") if parts.length == 2 display_header(parts[0], parts[1]) scanner = SSLScan::Scanner.new(parts[0], parts[1].to_i) else display_header(host) scanner = SSLScan::Scanner.new(parts[0]) end display_ciphers(scanner) @results << scanner.results end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ssl_scan-0.0.2 | lib/ssl_scan/commands/targets.rb |