class Rex::Proto::Kerberos::Pac::PrivSvrChecksum

This class provides a representation of a PAC_PRIVSVR_CHECKSUM structure, which contains the checksum using the key of the KDC.

Attributes

checksum[RW]

@!attribute version

@return [Fixnum] The checksum type

Public Instance Methods

encode() click to toggle source

Encodes the Rex::Proto::Kerberos::Pac::PacPrivSvrChecksum

@return [String]

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

  encoded
end