Sha256: ab8b3a94fbe408dacacbb30426afaf8cfdddd41f35e8a80e93a9dbd15eee2c26

Contents?: true

Size: 704 Bytes

Versions: 7

Compression:

Stored size: 704 Bytes

Contents

# -*- coding: binary -*-

module Rex
  module Proto
    module Kerberos
      module Pac
        # This class provides a representation of a PAC_PRIVSVR_CHECKSUM structure, which contains the
        # checksum using the key of the KDC.
        class PrivSvrChecksum < Element

          # @!attribute version
          #   @return [Fixnum] The checksum type
          attr_accessor :checksum

          # Encodes the Rex::Proto::Kerberos::Pac::PacPrivSvrChecksum
          #
          # @return [String]
          def encode
            encoded = ''
            encoded << [checksum].pack('V')
            encoded << "\x00" * 16

            encoded
          end
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
rex-2.0.13 lib/rex/proto/kerberos/pac/priv_svr_checksum.rb
rex-2.0.12 lib/rex/proto/kerberos/pac/priv_svr_checksum.rb
rex-2.0.11 lib/rex/proto/kerberos/pac/priv_svr_checksum.rb
rex-2.0.10 lib/rex/proto/kerberos/pac/priv_svr_checksum.rb
rex-2.0.9 lib/rex/proto/kerberos/pac/priv_svr_checksum.rb
rex-2.0.8 lib/rex/proto/kerberos/pac/priv_svr_checksum.rb
rex-2.0.7 lib/rex/proto/kerberos/pac/priv_svr_checksum.rb