Class: Rex::Proto::RFB::AuthType

Inherits:
Object
  • Object
show all
Defined in:
lib/rex/proto/rfb/constants.rb

Overview

Security types

Constant Summary collapse

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

Class Method Summary collapse

Class Method Details

.to_s(num) ⇒ Object


40
41
42
43
44
45
# File 'lib/rex/proto/rfb/constants.rb', line 40

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