class RubySMB::Dcerpc::Winreg::OpenKeyRequest
This class represents a BaseRegOpenKey Request
Packet as defined in [3.1.5.15 BaseRegOpenKey (Opnum 15)](docs.microsoft.com/en-us/openspecs/windows_protocols/ms-rrp/8cb48f55-19e1-4ea2-8d76-dd0f6934f0d9)
Attributes
opnum[R]
Public Instance Methods
initialize_instance()
click to toggle source
Calls superclass method
# File lib/ruby_smb/dcerpc/winreg/open_key_request.rb, line 20 def initialize_instance super @opnum = REG_OPEN_KEY end
pad_length()
click to toggle source
Determines the correct length for the padding in front of dw_options. It should always force a 4-byte alignment.
# File lib/ruby_smb/dcerpc/winreg/open_key_request.rb, line 27 def pad_length offset = (lp_sub_key.abs_offset + lp_sub_key.to_binary_s.length) % 4 (4 - offset) % 4 end