Class: SSHScan::SSHLib::Mpssh
- Inherits:
-
Object
- Object
- SSHScan::SSHLib::Mpssh
- Defined in:
- lib/ssh_scan/ssh_lib/mpssh.rb
Defined Under Namespace
Classes: Version
Instance Method Summary collapse
- #common ⇒ Object
- #cpe ⇒ Object
-
#initialize(banner = nil) ⇒ Mpssh
constructor
A new instance of Mpssh.
- #version ⇒ Object
Constructor Details
#initialize(banner = nil) ⇒ Mpssh
14 15 16 |
# File 'lib/ssh_scan/ssh_lib/mpssh.rb', line 14 def initialize( = nil) = end |
Instance Method Details
#common ⇒ Object
25 26 27 |
# File 'lib/ssh_scan/ssh_lib/mpssh.rb', line 25 def common "mpssh" end |
#cpe ⇒ Object
29 30 31 |
# File 'lib/ssh_scan/ssh_lib/mpssh.rb', line 29 def cpe "a:mpssh:mpssh" << (":" + version.to_s) unless version.nil? end |
#version ⇒ Object
18 19 20 21 22 23 |
# File 'lib/ssh_scan/ssh_lib/mpssh.rb', line 18 def version() return nil if .nil? match = .match(/mpSSH_(\d+[\.\d+]+(p)?(\d+)?)/i) return nil if match.nil? return Mpssh::Version.new(match[1]) end |