Sha256: 7d15990b54e94a900711aba94a2d87d778636c1f1e62691dcd4bf9ab5aec6655

Contents?: true

Size: 711 Bytes

Versions: 39

Compression:

Stored size: 711 Bytes

Contents

##
# $Id: $
##

##
#
# 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

39 entries across 39 versions & 1 rubygems

Version Path
librex-0.0.65 lib/rex/proto/rfb/constants.rb
librex-0.0.63 lib/rex/proto/rfb/constants.rb
librex-0.0.54 lib/rex/proto/rfb/constants.rb
librex-0.0.53 lib/rex/proto/rfb/constants.rb
librex-0.0.52 lib/rex/proto/rfb/constants.rb
librex-0.0.51 lib/rex/proto/rfb/constants.rb
librex-0.0.50 lib/rex/proto/rfb/constants.rb
librex-0.0.49 lib/rex/proto/rfb/constants.rb
librex-0.0.48 lib/rex/proto/rfb/constants.rb
librex-0.0.47 lib/rex/proto/rfb/constants.rb
librex-0.0.46 lib/rex/proto/rfb/constants.rb
librex-0.0.44 lib/rex/proto/rfb/constants.rb
librex-0.0.43 lib/rex/proto/rfb/constants.rb
librex-0.0.42 lib/rex/proto/rfb/constants.rb
librex-0.0.41 lib/rex/proto/rfb/constants.rb
librex-0.0.40 lib/rex/proto/rfb/constants.rb
librex-0.0.39 lib/rex/proto/rfb/constants.rb
librex-0.0.38 lib/rex/proto/rfb/constants.rb
librex-0.0.37 lib/rex/proto/rfb/constants.rb
librex-0.0.36 lib/rex/proto/rfb/constants.rb