class RubySMB::Dcerpc::Winreg::EnumKeyResponse
This class represents a BaseRegEnumKey Response
Packet as defined in [3.1.5.10 BaseRegEnumKey (Opnum 9)](docs.microsoft.com/en-us/openspecs/windows_protocols/ms-rrp/668627e9-e0eb-4ab1-911f-0af589beeac3)
Attributes
opnum[R]
Public Instance Methods
initialize_instance()
click to toggle source
Calls superclass method
# File lib/ruby_smb/dcerpc/winreg/enum_key_response.rb, line 19 def initialize_instance super @opnum = REG_ENUM_KEY end
pad_length1()
click to toggle source
Determines the correct length for the padding in front of lp_class. It should always force a 4-byte alignment.
# File lib/ruby_smb/dcerpc/winreg/enum_key_response.rb, line 26 def pad_length1 offset = (lp_name.abs_offset + lp_name.to_binary_s.length) % 4 (4 - offset) % 4 end
pad_length2()
click to toggle source
Determines the correct length for the padding in front of lpft_last_write_time. It should always force a 4-byte alignment.
# File lib/ruby_smb/dcerpc/winreg/enum_key_response.rb, line 33 def pad_length2 offset = (lp_class.abs_offset + lp_class.to_binary_s.length) % 4 (4 - offset) % 4 end