Sha256: a65e9470e1712e00ab8e1b83d7363102d0257a0e5bb7d532e1b10c2b8727c40b

Contents?: true

Size: 1.91 KB

Versions: 14

Compression:

Stored size: 1.91 KB

Contents

module RubySMB
  module Dcerpc
    module Winreg

      class PrpcHkey < Ndr::NdrContextHandle; end

      # 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)](https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-rrp/956a3052-6580-43ee-91aa-aaf61726149b)
      # [3.1.5.2 OpenCurrentUser (Opnum 1)](https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-rrp/ec140ed9-4d00-4c03-a15c-c7245a497ed5)
      # [3.1.5.3 OpenLocalMachine (Opnum 2)](https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-rrp/6cef29ae-21ba-423f-9158-05145ac80a5b)
      # [3.1.5.4 OpenPerformanceData (Opnum 3)](https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-rrp/7b514c63-6cad-4fe1-9780-743959e377e6)
      # [3.1.5.5 OpenUsers (Opnum 4)](https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-rrp/694e57f4-da3e-4285-8b71-3181d71d6cd1)
      # [3.1.5.25 OpenCurrentConfig (Opnum 27)](https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-rrp/160767d7-83cf-4718-a4f3-d864faee3bb1)
      # [3.1.5.28 OpenPerformanceText (Opnum 32)](https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-rrp/44954f6d-ef2c-4ec1-a27d-32b9b87e3c8a)
      # [3.1.5.29 OpenPerformanceNlsText (Opnum 33)](https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-rrp/3626fa8a-b20f-4243-bf85-cdb615ed2ca0)
      # The structure is define by the value of the #opnum parameter
      # e.g. (OpenLocalMachine):
      #   OpenRootKeyResponse.new(opnum: RubySMB::Dcerpc::Winreg::OPEN_HKLM)
      class OpenRootKeyResponse < BinData::Record
        attr_reader :opnum

        endian    :little
        prpc_hkey :ph_key
        uint32    :error_status

        def initialize_instance
          super
          @opnum = get_parameter(:opnum) if has_parameter?(:opnum)
        end
      end

    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
ruby_smb-2.0.12 lib/ruby_smb/dcerpc/winreg/open_root_key_response.rb
ruby_smb-2.0.11 lib/ruby_smb/dcerpc/winreg/open_root_key_response.rb
ruby_smb-2.0.10 lib/ruby_smb/dcerpc/winreg/open_root_key_response.rb
ruby_smb-2.0.9 lib/ruby_smb/dcerpc/winreg/open_root_key_response.rb
ruby_smb-2.0.8 lib/ruby_smb/dcerpc/winreg/open_root_key_response.rb
ruby_smb-2.0.7 lib/ruby_smb/dcerpc/winreg/open_root_key_response.rb
ruby_smb-2.0.6 lib/ruby_smb/dcerpc/winreg/open_root_key_response.rb
ruby_smb-2.0.5 lib/ruby_smb/dcerpc/winreg/open_root_key_response.rb
ruby_smb-2.0.4 lib/ruby_smb/dcerpc/winreg/open_root_key_response.rb
ruby_smb-2.0.3 lib/ruby_smb/dcerpc/winreg/open_root_key_response.rb
ruby_smb-2.0.2 lib/ruby_smb/dcerpc/winreg/open_root_key_response.rb
ruby_smb-2.0.1 lib/ruby_smb/dcerpc/winreg/open_root_key_response.rb
ruby_smb-2.0.0 lib/ruby_smb/dcerpc/winreg/open_root_key_response.rb
ruby_smb-1.1.0 lib/ruby_smb/dcerpc/winreg/open_root_key_response.rb