lib/rex/registry/regf.rb in librex-0.0.68 vs lib/rex/registry/regf.rb in librex-0.0.70
- old
+ new
@@ -2,24 +2,24 @@
module Rex
module Registry
class RegfBlock
- attr_accessor :timestamp, :root_key_offset
+ attr_accessor :timestamp, :root_key_offset
- def initialize(hive)
+ def initialize(hive)
- regf_header = hive[0x00, 4]
+ regf_header = hive[0x00, 4]
- if regf_header !~ /regf/
- puts "Not a registry hive"
- return
- end
+ if regf_header !~ /regf/
+ puts "Not a registry hive"
+ return
+ end
- @timestamp = hive[0x0C, 8].unpack('q').first
- @root_key_offset = 0x20
+ @timestamp = hive[0x0C, 8].unpack('q').first
+ @root_key_offset = 0x20
- end
+ end
end
end
end