Class: RubySMB::Dcerpc::Winreg::QueryInfoKeyResponse
- Inherits:
-
BinData::Record
- Object
- BinData::Record
- RubySMB::Dcerpc::Winreg::QueryInfoKeyResponse
- Defined in:
- lib/ruby_smb/dcerpc/winreg/query_info_key_response.rb
Overview
This class represents a BaseRegQueryInfoKey Response Packet as defined in 3.1.5.16 BaseRegQueryInfoKey (Opnum 16)
Instance Attribute Summary collapse
-
#opnum ⇒ Object
readonly
Returns the value of attribute opnum.
Instance Method Summary collapse
- #initialize_instance ⇒ Object
-
#pad_length ⇒ Object
Determines the correct length for the padding in front of #lpc_sub_keys.
Instance Attribute Details
#opnum ⇒ Object (readonly)
Returns the value of attribute opnum.
7 8 9 |
# File 'lib/ruby_smb/dcerpc/winreg/query_info_key_response.rb', line 7 def opnum @opnum end |
Instance Method Details
#initialize_instance ⇒ Object
23 24 25 26 |
# File 'lib/ruby_smb/dcerpc/winreg/query_info_key_response.rb', line 23 def initialize_instance super @opnum = REG_QUERY_INFO_KEY end |
#pad_length ⇒ Object
Determines the correct length for the padding in front of
lpc_sub_keys. It should always force a 4-byte alignment.
30 31 32 33 |
# File 'lib/ruby_smb/dcerpc/winreg/query_info_key_response.rb', line 30 def pad_length offset = (lp_class.abs_offset + lp_class.to_binary_s.length) % 4 (4 - offset) % 4 end |