Sha256: 9f5d9adf51d9c67a72b4c12677007f7156f79d4cd782d0fdc87e4e394786e002
Contents?: true
Size: 517 Bytes
Versions: 2
Compression:
Stored size: 517 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
librex-0.0.68 | lib/rex/registry/valuelist.rb |
librex-0.0.66 | lib/rex/registry/valuelist.rb |