Sha256: c551c6bd70d0d86cb1e3fdb8137b12b66acbdc442a7c55ca35e375823774a0d2
Contents?: true
Size: 659 Bytes
Versions: 31
Compression:
Stored size: 659 Bytes
Contents
module SSHScan module SSHLib class IpSsh class Version def initialize(version_string) @version_string = version_string end def to_s @version_string end end def initialize(banner = nil) @banner = banner end def version() return nil if @banner.nil? match = @banner.match(/IPSSH-(\d+[\.\d+]+(p)?(\d+)?)/) return nil if match.nil? return IpSsh::Version.new(match[1]) end def common "ipssh" end def cpe "a:ipssh:ipssh" << (":" + version.to_s) unless version.nil? end end end end
Version data entries
31 entries across 31 versions & 1 rubygems