Sha256: 635a5f9128a91a792eb06e328d78aa1391263c684db40a5f137f0a7cf533a5e9

Contents?: true

Size: 671 Bytes

Versions: 31

Compression:

Stored size: 671 Bytes

Contents

module SSHScan
  module SSHLib
    class FlowSsh
      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(/(\d+[\.\d+]+(p)?(\d+)?) FlowSsh/)
        return nil if match.nil?
        return FlowSsh::Version.new(match[1])
      end

      def common
        "flowssh"
      end

      def cpe
        "a:bitvise:flowssh" << (":" + version.to_s) unless version.nil?
      end
    end
  end
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
ssh_scan-0.0.44 lib/ssh_scan/ssh_lib/flowssh.rb
ssh_scan-0.0.43 lib/ssh_scan/ssh_lib/flowssh.rb
ssh_scan-0.0.42 lib/ssh_scan/ssh_lib/flowssh.rb
ssh_scan-0.0.41 lib/ssh_scan/ssh_lib/flowssh.rb
ssh_scan-0.0.40 lib/ssh_scan/ssh_lib/flowssh.rb
ssh_scan-0.0.39 lib/ssh_scan/ssh_lib/flowssh.rb
ssh_scan-0.0.38 lib/ssh_scan/ssh_lib/flowssh.rb
ssh_scan-0.0.38.pre lib/ssh_scan/ssh_lib/flowssh.rb
ssh_scan-0.0.37 lib/ssh_scan/ssh_lib/flowssh.rb
ssh_scan-0.0.36 lib/ssh_scan/ssh_lib/flowssh.rb
ssh_scan-0.0.35 lib/ssh_scan/ssh_lib/flowssh.rb
ssh_scan-0.0.34 lib/ssh_scan/ssh_lib/flowssh.rb
ssh_scan-0.0.33 lib/ssh_scan/ssh_lib/flowssh.rb
ssh_scan-0.0.32 lib/ssh_scan/ssh_lib/flowssh.rb
ssh_scan-0.0.31 lib/ssh_scan/ssh_lib/flowssh.rb
ssh_scan-0.0.30 lib/ssh_scan/ssh_lib/flowssh.rb
ssh_scan-0.0.29 lib/ssh_scan/ssh_lib/flowssh.rb
ssh_scan-0.0.28 lib/ssh_scan/ssh_lib/flowssh.rb
ssh_scan-0.0.27 lib/ssh_scan/ssh_lib/flowssh.rb
ssh_scan-0.0.26 lib/ssh_scan/ssh_lib/flowssh.rb