Class: SmbRpc::Lsarpc::LsarLookupNamesReq

Inherits:
BinData::Record
  • Object
show all
Defined in:
lib/smbRpc/lsarpc/lookupNames.rb

Instance Method Summary collapse

Instance Method Details

#initialize_instanceObject



25
26
27
28
29
30
31
32
33
34
35
# File 'lib/smbRpc/lsarpc/lookupNames.rb', line 25

def initialize_instance
  super
  policyHandle.value = get_parameter(:handle)
  uniString = get_parameter(:accountName).bytes.pack("v*")
  name.len.value = uniString.bytesize
  name.maximumLength.value = uniString.bytesize
  nameNdr.str.value = uniString

  request.pduHead.frag_length = self.num_bytes
  request.opnum.value = 14        #LsarLookupNames
end