nt_hive2

Crates.iont_hive2
lib.rsnt_hive2
version4.2.3
sourcesrc
created_at2022-04-19 19:10:17.866525
updated_at2024-07-17 15:06:47.764282
descriptionforensic parser library for Windows registry hive files
homepage
repositoryhttps://github.com/dfir-dd/nt-hive2
max_upload_size
id570595
size1,499,160
Jan Starke (janstarke)

documentation

README

nt_hive2

Warning The tools of this repository have been moved to https://github.com/dfir-dd/dfir-toolkit

You can install the tools by running cargo install dfir-toolkit

The lib itself will stay available here

This crates aims to be a replacement of https://github.com/ColinFinck/nt-hive, with the following differences:

  • use of BinRead to parse hive files
  • support of displaying last written timestamps
  • recovery of deleted cells

Usage example for developers

use std::fs::File;
use nt_hive2::*;

#
let hive_file = File::open("tests/data/testhive")?;
let mut hive = Hive::new(hive_file)?;
let root_key = hive.root_key_node()?;

for sk in root_key.subkeys(&mut hive)?.iter() {
    println!("\n[{}]; last written: {}", sk.borrow().name(), sk.borrow().timestamp());
    for value in sk.borrow().values() {
        println!("\"{}\" = {}", value.name(), value.value());
    }
}

License: GPL-3.0

Commit count: 152

cargo fmt