Sha256: 881c9ec05975c485b2758e31fea7be39f8eb1c9f876f39bd24b509ac417b167c

Contents?: true

Size: 875 Bytes

Versions: 2

Compression:

Stored size: 875 Bytes

Contents

require 'ruby_smb/dcerpc/ndr'

module RubySMB
  module Dcerpc
    module Netlogon

      # [3.5.4.4.5 NetrServerPasswordSet2 (Opnum 30)](https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-nrpc/14b020a8-0bcf-4af5-ab72-cc92bc6b1d81)
      class NetrServerPasswordSet2Request < BinData::Record
        attr_reader :opnum

        endian :little

        logonsrv_handle              :primary_name
        ndr_string                   :account_name
        netlogon_secure_channel_type :secure_channel_type
        ndr_string                   :computer_name
        netlogon_authenticator       :authenticator
        ndr_fixed_byte_array         :clear_new_password, length: 516 # this is an encrypted NL_TRUST_PASSWORD

        def initialize_instance
          super
          @opnum = Netlogon::NETR_SERVER_PASSWORD_SET2
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ruby_smb-2.0.6 lib/ruby_smb/dcerpc/netlogon/netr_server_password_set2_request.rb
ruby_smb-2.0.5 lib/ruby_smb/dcerpc/netlogon/netr_server_password_set2_request.rb