Skip to content
devttys0 edited this page Oct 15, 2024 · 23 revisions

Installation

Step 1

Install the Rust compiler:

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
. $HOME/.cargo/env

Step 2

Download binwalk:

git clone https://github.com/ReFirmLabs/binwalk

Step 3

Install dependencies:

sudo ./binwalk/dependencies/ubuntu.sh

Step 4

Compile Binwalk:

cd binwalk
cargo build --release

Usage

Scan a file's contents

./target/release/binwalk /tmp/firmware.bin

Scan and extract a file's contents

./target/release/binwalk -Me /tmp/firmware.bin
Clone this wiki locally