Class: RubySMB::Dcerpc::Winreg::EnumKeyRequest
- Inherits:
-
BinData::Record
- Object
- BinData::Record
- RubySMB::Dcerpc::Winreg::EnumKeyRequest
- Defined in:
- lib/ruby_smb/dcerpc/winreg/enum_key_request.rb
Overview
This class represents a BaseRegEnumKey Request Packet as defined in 3.1.5.10 BaseRegEnumKey (Opnum 9)
Instance Attribute Summary collapse
-
#opnum ⇒ Object
readonly
Returns the value of attribute opnum.
Instance Method Summary collapse
- #initialize_instance ⇒ Object
-
#pad_length1 ⇒ Object
Determines the correct length for the padding in front of #lp_class.
-
#pad_length2 ⇒ Object
Determines the correct length for the padding in front of #lpft_last_write_time.
Instance Attribute Details
#opnum ⇒ Object (readonly)
Returns the value of attribute opnum.
10 11 12 |
# File 'lib/ruby_smb/dcerpc/winreg/enum_key_request.rb', line 10 def opnum @opnum end |
Instance Method Details
#initialize_instance ⇒ Object
22 23 24 25 |
# File 'lib/ruby_smb/dcerpc/winreg/enum_key_request.rb', line 22 def initialize_instance super @opnum = REG_ENUM_KEY end |
#pad_length1 ⇒ Object
Determines the correct length for the padding in front of
lp_class. It should always force a 4-byte alignment.
29 30 31 32 |
# File 'lib/ruby_smb/dcerpc/winreg/enum_key_request.rb', line 29 def pad_length1 offset = (lp_name.abs_offset + lp_name.to_binary_s.length) % 4 (4 - offset) % 4 end |
#pad_length2 ⇒ Object
Determines the correct length for the padding in front of
lpft_last_write_time. It should always force a 4-byte alignment.
36 37 38 39 |
# File 'lib/ruby_smb/dcerpc/winreg/enum_key_request.rb', line 36 def pad_length2 offset = (lp_class.abs_offset + lp_class.to_binary_s.length) % 4 (4 - offset) % 4 end |