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.3.13 lib/ruby_smb/dcerpc/rpc_auth3.rb
ruby_smb-3.3.12 lib/ruby_smb/dcerpc/rpc_auth3.rb
ruby_smb-3.3.11 lib/ruby_smb/dcerpc/rpc_auth3.rb
ruby_smb-3.3.10 lib/ruby_smb/dcerpc/rpc_auth3.rb
ruby_smb-3.3.9 lib/ruby_smb/dcerpc/rpc_auth3.rb
ruby_smb-3.3.7 lib/ruby_smb/dcerpc/rpc_auth3.rb
ruby_smb-3.3.6 lib/ruby_smb/dcerpc/rpc_auth3.rb
ruby_smb-3.3.5 lib/ruby_smb/dcerpc/rpc_auth3.rb
ruby_smb-3.3.4 lib/ruby_smb/dcerpc/rpc_auth3.rb
ruby_smb-3.3.3 lib/ruby_smb/dcerpc/rpc_auth3.rb
ruby_smb-3.3.2 lib/ruby_smb/dcerpc/rpc_auth3.rb
ruby_smb-3.3.1 lib/ruby_smb/dcerpc/rpc_auth3.rb
ruby_smb-3.3.0 lib/ruby_smb/dcerpc/rpc_auth3.rb
ruby_smb-3.2.8 lib/ruby_smb/dcerpc/rpc_auth3.rb
ruby_smb-3.2.7 lib/ruby_smb/dcerpc/rpc_auth3.rb
ruby_smb-3.2.6 lib/ruby_smb/dcerpc/rpc_auth3.rb
ruby_smb-3.2.5 lib/ruby_smb/dcerpc/rpc_auth3.rb
ruby_smb-3.2.4 lib/ruby_smb/dcerpc/rpc_auth3.rb
ruby_smb-3.2.3 lib/ruby_smb/dcerpc/rpc_auth3.rb
ruby_smb-3.2.2 lib/ruby_smb/dcerpc/rpc_auth3.rb