Class: Rex::Proto::Kerberos::Keytab::Krb5KeytabCountedOctetString

Inherits:
BinData::Primitive
  • Object
show all
Defined in:
lib/rex/proto/kerberos/keytab/krb5_keytab.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#dataString

Returns:

  • (String)


17
# File 'lib/rex/proto/kerberos/keytab/krb5_keytab.rb', line 17

string :data, read_length: :len

#lenInteger

Returns:

  • (Integer)


13
# File 'lib/rex/proto/kerberos/keytab/krb5_keytab.rb', line 13

uint16 :len, value: -> { data.length }

Instance Method Details

#getObject



19
20
21
# File 'lib/rex/proto/kerberos/keytab/krb5_keytab.rb', line 19

def get
  data.snapshot
end

#set(v) ⇒ Object



23
24
25
# File 'lib/rex/proto/kerberos/keytab/krb5_keytab.rb', line 23

def set(v)
  self.data = v
end