1 stable release

3.1.0 Oct 31, 2024

#132 in Embedded development

Download history 279/week @ 2024-10-28 341/week @ 2024-11-04 334/week @ 2024-11-11 362/week @ 2024-11-18 336/week @ 2024-11-25 331/week @ 2024-12-02 312/week @ 2024-12-09

1,377 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–20MB
~275K SLoC