Sha256: b2c5c13e5556e9cee026ae581c469f274b299839697f3dfdedc22d567c963a3e
Contents?: true
Size: 660 Bytes
Versions: 31
Compression:
Stored size: 660 Bytes
Contents
module SSHScan module SSHLib class Mpssh 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(/mpSSH_(\d+[\.\d+]+(p)?(\d+)?)/i) return nil if match.nil? return Mpssh::Version.new(match[1]) end def common "mpssh" end def cpe "a:mpssh:mpssh" << (":" + version.to_s) unless version.nil? end end end end
Version data entries
31 entries across 31 versions & 1 rubygems