class SSHScan::SSHLib::RomSShell

Public Class Methods

new(banner = nil) click to toggle source
# File lib/ssh_scan/ssh_lib/romsshell.rb, line 14
def initialize(banner = nil)
  @banner = banner
end

Public Instance Methods

common() click to toggle source
# File lib/ssh_scan/ssh_lib/romsshell.rb, line 25
def common
  "romsshell"
end
cpe() click to toggle source
# File lib/ssh_scan/ssh_lib/romsshell.rb, line 29
def cpe
  "a:allegrosoft:romsshell" << (":" + version.to_s) unless version.nil?
end
version() click to toggle source
# File lib/ssh_scan/ssh_lib/romsshell.rb, line 18
def version()
  return nil if @banner.nil?
  match = @banner.match(/RomSShell_(\d+[\.\d+]+(p)?(\d+)?)/)
  return nil if match.nil?
  return RomSShell::Version.new(match[1])
end