Sha256: 7b1d24f5a1fcbc263d3dc58026324a716cc4261f25249c5a35c6480d057d513e

Contents?: true

Size: 545 Bytes

Versions: 1

Compression:

Stored size: 545 Bytes

Contents

# -*- coding: binary -*-
require_relative "valuekey"

module Rex
module Registry

class ValueList

  attr_accessor :values

  def initialize(hive, offset, number_of_values)
    offset = offset + 4
    inner_offset = 0

    @values = []

    1.upto(number_of_values) do |v|
      valuekey_offset = hive[offset + inner_offset, 4]
      next if !valuekey_offset

      valuekey_offset = valuekey_offset.unpack('l').first
      @values << ValueKey.new(hive, valuekey_offset + 0x1000)
      inner_offset = inner_offset + 4
    end
  end
end

end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
librex-0.0.70 lib/rex/registry/valuelist.rb