Class: RubySMB::Dcerpc::Winreg::QueryValueRequest
- Inherits:
-
BinData::Record
- Object
- BinData::Record
- RubySMB::Dcerpc::Winreg::QueryValueRequest
- Defined in:
- lib/ruby_smb/dcerpc/winreg/query_value_request.rb
Overview
This class represents a BaseRegQueryValue Request Packet as defined in 3.1.5.17 BaseRegQueryValue (Opnum 17)
Instance Attribute Summary collapse
-
#opnum ⇒ Object
readonly
Returns the value of attribute opnum.
Instance Method Summary collapse
- #initialize_instance ⇒ Object
-
#pad_length(prev_element) ⇒ Object
Determines the correct length for the padding, so that the next field is 4-byte aligned.
Instance Attribute Details
#opnum ⇒ Object (readonly)
Returns the value of attribute opnum.
10 11 12 |
# File 'lib/ruby_smb/dcerpc/winreg/query_value_request.rb', line 10 def opnum @opnum end |
Instance Method Details
#initialize_instance ⇒ Object
23 24 25 26 |
# File 'lib/ruby_smb/dcerpc/winreg/query_value_request.rb', line 23 def initialize_instance super @opnum = REG_QUERY_VALUE end |
#pad_length(prev_element) ⇒ Object
Determines the correct length for the padding, so that the next field is 4-byte aligned.
30 31 32 33 |
# File 'lib/ruby_smb/dcerpc/winreg/query_value_request.rb', line 30 def pad_length(prev_element) offset = (prev_element.abs_offset + prev_element.to_binary_s.length) % 4 (4 - offset) % 4 end |