21 stable releases (4 major)

4.2.4 Jul 27, 2025
4.2.3 Jul 17, 2024
4.2.1 Apr 17, 2024
4.0.2 Mar 9, 2024
0.1.1 Apr 20, 2022

#45 in Windows APIs

Download history 1/week @ 2025-12-11 26/week @ 2025-12-18 49/week @ 2026-01-15 568/week @ 2026-01-22 233/week @ 2026-01-29 37/week @ 2026-02-05 51/week @ 2026-02-12 66/week @ 2026-02-19 108/week @ 2026-02-26 50/week @ 2026-03-05 21/week @ 2026-03-12 38/week @ 2026-03-19 61/week @ 2026-03-26

178 downloads per month
Used in 7 crates (5 directly)

GPL-3.0 license

86KB
2K SLoC

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
  • possibly recovery of deleted cells (might be added in the future)

Usage example

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

#
let hive_file = File::open("tests/data/testhive")?;
let mut hive = Hive::new(hive_file, HiveParseMode::NormalWithBaseBlock)?;
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());
    }
}

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

Dependencies

~6.5MB
~182K SLoC