Skip to content

Building A Binwalk Docker Image

devttys0 edited this page Oct 22, 2024 · 7 revisions

Note

The following assumes you are running an Ubuntu, or similar, operating system.

The sudo apt commands may be different depending on your system.

Step 1

Install docker:

sudo apt install docker.io

Step 2

Download binwalk:

sudo apt install git
git clone https://github.com/ReFirmLabs/binwalk

Step 3

Build the docker image:

cd binwalk
sudo docker build -t binwalkv3 .

Step 4

Run the binwalkv3 docker container:

sudo docker run -t -v.:/analysis binwalkv3 -Me firmware.bin

Note

The default working directory inside the docker container is /analysis.

Tip

The default user ID of the docker container is 1000; if you wish to run with a different user ID (e.g., 1001):

sudo docker run -t -v.:/analysis -u 1001 binwalkv3 -Me firmware.bin