class Rex::Proto::Kerberos::Pac::ServerChecksum

This class provides a representation of a PAC_SERVER_CHECKSUM structure, which contains the checksum using the key of the server.

Attributes

checksum[RW]

@!attribute version

@return [Fixnum] The checksum type

Public Instance Methods

encode() click to toggle source

Encodes the Rex::Proto::Kerberos::Pac::ServerChecksum

@return [String]

# File lib/rex/proto/kerberos/pac/server_checksum.rb, line 17
def encode
  encoded = ''
  encoded << [checksum].pack('V')
  encoded << "\x00" * 16

  encoded
end