Sha256: 86ef6f5c4c77d15d5c1a241025013b5b8ae534e263b1bd410116330218d2071e

Contents?: true

Size: 744 Bytes

Versions: 10

Compression:

Stored size: 744 Bytes

Contents

# -*- coding: binary -*-

##
#
# RFB protocol support
#
# by Joshua J. Drake <jduck>
#
# Based on:
# vnc_auth_none contributed by Matteo Cantoni <goony[at]nothink.org>
# vnc_auth_login contributed by carstein <carstein.sec[at]gmail.com>
#
##

module Rex
module Proto
module RFB

DefaultPort = 5900

# Version information
MajorVersion = 3
# NOTE: We will emulate whatever minor version the server reports.

# Security types
class AuthType
  Invalid = 0
  None = 1
  VNC = 2
  RA2 = 5
  RA2ne = 6
  Tight = 16
  Ultra = 17
  TLS = 18
  VeNCrypt = 19
  GtkVncSasl = 20
  MD5Hash = 21
  ColinDeanXVP = 22

  def self.to_s(num)
    self.constants.each { |c|
      return c.to_s if self.const_get(c) == num
    }
    'Unknown'
  end
end

end
end
end

Version data entries

10 entries across 10 versions & 3 rubygems

Version Path
rex-2.0.8 lib/rex/proto/rfb/constants.rb
rex-2.0.7 lib/rex/proto/rfb/constants.rb
rex-2.0.5 lib/rex/proto/rfb/constants.rb
rex-2.0.4 lib/rex/proto/rfb/constants.rb
dstruct-0.0.1 lib/rex/proto/rfb/constants.rb
rex-2.0.3 lib/rex/proto/rfb/constants.rb
librex-0.0.999 lib/rex/proto/rfb/constants.rb
rex-2.0.2 lib/rex/proto/rfb/constants.rb
librex-0.0.71 lib/rex/proto/rfb/constants.rb
librex-0.0.70 lib/rex/proto/rfb/constants.rb