A simple parser and reader for Microsoft Thumbs.db files.
This includes a basic parser, which validates the format of the given file, and a reader for extracting thumbnails.
This library will be used in a global forensic computing library very soon.
Add this to your Cargo.toml
:
toml
[dependencies]
thumbsdb = "0.1.2"
and this to your crate root:
rust
extern crate thumbsdb;
```rust use thumbsdb; use std::io::Write;
let mut file = std::fs::File::open("assets/Thumbs.db").unwrap();
// We're going to extract the thumbnails from the Thumbs.db
let thumbs = thumbsdb::new(file).unwrap();
for thumbnail in thumbs.iterate() {
let mut buffer = std::vec::Vec::
// Saves the extracted thumbnail let mut extractedfile = std::fs::File::create(format!("assets/streams/{}", thumbnail.name())).unwrap(); extractedfile.write_all(&buffer[..]); } ```
Release notes are available in RELEASES.md.
thumbsdb
seems to work for rust 1.9 and greater.