1 stable release
3.1.0 | Oct 31, 2024 |
---|
#131 in Embedded development
1,372 downloads per month
Used in injected-image-checker
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