metasploit-framework/lib/rex/proto/kerberos/pac/server_checksum.rb

28 lines
552 B
Ruby

# -*- coding: binary -*-
module Rex
module Proto
module Kerberos
module Pac
class ServerChecksum < Element
# @!attribute version
# @return [Fixnum] The checksum type
attr_accessor :checksum
# Encodes the Rex::Proto::Kerberos::Pac::ServerChecksum
#
# @return [String]
def encode
encoded = ''
encoded << [checksum].pack('V')
encoded << "\x00" * 16
encoded
end
end
end
end
end
end