Sha256: c52567e081ed2623eaed12ad1f384340feffc28bf0a176193e942bf86b7b71d5

Contents?: true

Size: 673 Bytes

Versions: 38

Compression:

Stored size: 673 Bytes

Contents

module RubySMB
  module Dcerpc

    # [2.2.2.10 rpc_auth_3 PDU](https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-rpce/a6b7b03c-4ac5-4c25-8c52-f2bec872ac97)
    class RpcAuth3 < BinData::Record
      PTYPE = PTypes::RPC_AUTH3

      endian :little

      # PDU Header
      pdu_header  :pdu_header
      uint32      :pad

      # Auth Verifier
      sec_trailer :sec_trailer, onlyif: -> { pdu_header.auth_length > 0 }
      string      :auth_value,
        onlyif: -> { pdu_header.auth_length > 0 },
        read_length: -> { pdu_header.auth_length }

      def initialize_instance
        super
        pdu_header.ptype = PTYPE
      end
    end
  end
end


Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
ruby_smb-3.2.1 lib/ruby_smb/dcerpc/rpc_auth3.rb
ruby_smb-3.2.0 lib/ruby_smb/dcerpc/rpc_auth3.rb
ruby_smb-3.1.7 lib/ruby_smb/dcerpc/rpc_auth3.rb
ruby_smb-3.1.6 lib/ruby_smb/dcerpc/rpc_auth3.rb
ruby_smb-3.1.5 lib/ruby_smb/dcerpc/rpc_auth3.rb
ruby_smb-3.1.4 lib/ruby_smb/dcerpc/rpc_auth3.rb
ruby_smb-3.1.3 lib/ruby_smb/dcerpc/rpc_auth3.rb
ruby_smb-3.1.2 lib/ruby_smb/dcerpc/rpc_auth3.rb
ruby_smb-3.1.1 lib/ruby_smb/dcerpc/rpc_auth3.rb
ruby_smb-3.1.0 lib/ruby_smb/dcerpc/rpc_auth3.rb
ruby_smb-3.0.6 lib/ruby_smb/dcerpc/rpc_auth3.rb
ruby_smb-3.0.5 lib/ruby_smb/dcerpc/rpc_auth3.rb
ruby_smb-3.0.4 lib/ruby_smb/dcerpc/rpc_auth3.rb
ruby_smb-3.0.3 lib/ruby_smb/dcerpc/rpc_auth3.rb
ruby_smb-3.0.2 lib/ruby_smb/dcerpc/rpc_auth3.rb
ruby_smb-3.0.1 lib/ruby_smb/dcerpc/rpc_auth3.rb
ruby_smb-3.0.0 lib/ruby_smb/dcerpc/rpc_auth3.rb
ruby_smb-2.0.13 lib/ruby_smb/dcerpc/rpc_auth3.rb