class RubySMB::Dcerpc::Winreg::EnumValueRequest
This class represents a BaseRegEnumValue Request
Packet as defined in [3.1.5.11 BaseRegEnumValue (Opnum 10)](docs.microsoft.com/en-us/openspecs/windows_protocols/ms-rrp/56e99ef3-05dc-4f24-bcf5-9cff00412945)
Attributes
opnum[R]
Public Instance Methods
initialize_instance()
click to toggle source
Calls superclass method
# File lib/ruby_smb/dcerpc/winreg/enum_value_request.rb, line 23 def initialize_instance super @opnum = REG_ENUM_VALUE end
pad_length()
click to toggle source
Determines the correct length for the padding in front of lp_type. It should always force a 4-byte alignment.
# File lib/ruby_smb/dcerpc/winreg/enum_value_request.rb, line 30 def pad_length offset = (lp_value_name.abs_offset + lp_value_name.to_binary_s.length) % 4 (4 - offset) % 4 end