Class: Rex::Registry::RegfBlock
- Inherits:
-
Object
- Object
- Rex::Registry::RegfBlock
- Defined in:
- lib/rex/registry/regf.rb
Instance Attribute Summary collapse
-
#root_key_offset ⇒ Object
Returns the value of attribute root_key_offset.
-
#timestamp ⇒ Object
Returns the value of attribute timestamp.
Instance Method Summary collapse
-
#initialize(hive) ⇒ RegfBlock
constructor
A new instance of RegfBlock.
Constructor Details
#initialize(hive) ⇒ RegfBlock
Returns a new instance of RegfBlock.
9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/rex/registry/regf.rb', line 9 def initialize(hive) regf_header = hive[0x00, 4] if regf_header !~ /regf/ puts "Not a registry hive" return end @timestamp = hive[0x0C, 8].unpack('q').first @root_key_offset = 0x20 end |
Instance Attribute Details
#root_key_offset ⇒ Object
Returns the value of attribute root_key_offset.
7 8 9 |
# File 'lib/rex/registry/regf.rb', line 7 def root_key_offset @root_key_offset end |
#timestamp ⇒ Object
Returns the value of attribute timestamp.
7 8 9 |
# File 'lib/rex/registry/regf.rb', line 7 def @timestamp end |