Class: RubySMB::Dcerpc::Winreg::OpenRootKeyResponse
- Inherits:
-
BinData::Record
- Object
- BinData::Record
- RubySMB::Dcerpc::Winreg::OpenRootKeyResponse
- Defined in:
- lib/ruby_smb/dcerpc/winreg/open_root_key_response.rb
Overview
This class is a generic class that represents OpenXXX Response packet, used to open one of the root keys, as defined in: 3.1.5.1 OpenClassesRoot (Opnum 0) 3.1.5.2 OpenCurrentUser (Opnum 1) 3.1.5.3 OpenLocalMachine (Opnum 2) 3.1.5.4 OpenPerformanceData (Opnum 3) 3.1.5.5 OpenUsers (Opnum 4) 3.1.5.25 OpenCurrentConfig (Opnum 27) 3.1.5.28 OpenPerformanceText (Opnum 32) 3.1.5.29 OpenPerformanceNlsText (Opnum 33) The structure is define by the value of the #opnum parameter e.g. (OpenLocalMachine): OpenRootKeyResponse.new(opnum: RubySMB::Dcerpc::Winreg::OPEN_HKLM)
Instance Attribute Summary collapse
-
#opnum ⇒ Object
readonly
Returns the value of attribute opnum.
Instance Method Summary collapse
Instance Attribute Details
#opnum ⇒ Object (readonly)
Returns the value of attribute opnum.
21 22 23 |
# File 'lib/ruby_smb/dcerpc/winreg/open_root_key_response.rb', line 21 def opnum @opnum end |
Instance Method Details
#initialize_instance ⇒ Object
27 28 29 30 |
# File 'lib/ruby_smb/dcerpc/winreg/open_root_key_response.rb', line 27 def initialize_instance super @opnum = get_parameter(:opnum) if has_parameter?(:opnum) end |