-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Compile From Source
devttys0 edited this page Oct 18, 2024
·
5 revisions
Note
The following assumes you are running Ubuntu, or an Ubuntu-based operating system
Install the Rust compiler:
sudo apt install curl
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
. $HOME/.cargo/envDownload binwalk:
sudo apt install git
git clone https://github.com/ReFirmLabs/binwalkInstall dependencies:
sudo ./binwalk/dependencies/ubuntu.shTip
To only install build dependencies, skip the above script and instead:
sudo apt install build-essential libfontconfig1-dev liblzma-dev
Compile Binwalk:
cd binwalk
cargo build --releaseTip
The compiled binary will be located at binwalk/target/release/binwalk.
You may copy it to, and run it from, any directory you prefer.