Crates.io | binwalk |
lib.rs | binwalk |
version | 3.1.0 |
source | src |
created_at | 2024-10-31 14:59:36.587538 |
updated_at | 2024-10-31 14:59:36.587538 |
description | Analyzes data for embedded file types |
homepage | |
repository | https://github.com/ReFirmLabs/binwalk |
max_upload_size | |
id | 1430202 |
size | 2,146,649 |
A Rust implementation of the Binwalk firmware analysis tool.
Building requires the following system packages:
build-essential libfontconfig1-dev liblzma-dev
use binwalk::Binwalk;
// Create a new Binwalk instance
let binwalker = Binwalk::new();
// Read in the data to analyze
let file_data = std::fs::read("/tmp/firmware.bin").expect("Failed to read from file");
// Scan the file data and print the results
for result in binwalker.scan(&file_data) {
println!("{:#?}", result);
}