Sha256: 7562eee69649e802ddb5c9e77c78175e2c422ce913bc9019cdfeb98e49c5cb12
Contents?: true
Size: 656 Bytes
Versions: 31
Compression:
Stored size: 656 Bytes
Contents
module SSHScan module SSHLib class NosSSH 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(/NOS-SSH_(\d+[\.\d+]+)/) return nil if match.nil? return NosSSH::Version.new(match[1]) end def common "nosssh" end def cpe "a:nosssh:nosssh" << (":" + version.to_s) unless version.nil? end end end end
Version data entries
31 entries across 31 versions & 1 rubygems