1 stable release

3.1.0 Oct 31, 2024

#131 in Embedded development

Download history 421/week @ 2024-10-31 344/week @ 2024-11-07 356/week @ 2024-11-14 376/week @ 2024-11-21 326/week @ 2024-11-28 271/week @ 2024-12-05

1,372 downloads per month
Used in injected-image-checker

MIT license

645KB
12K SLoC

binwalk

A Rust implementation of the Binwalk firmware analysis tool.

System Requirements

Building requires the following system packages:

build-essential libfontconfig1-dev liblzma-dev

Example

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);
}

lib.rs:

Rust library for identifying, and optionally extracting, files embedded inside other files.

Example

 use binwalk::Binwalk;

 // Create a new Binwalk instance
 let binwalker = Binwalk::new();

 // Read in the data you want 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);
 }

Dependencies

~10–24MB
~281K SLoC