Skip to content

Building A Binwalk Docker Image

devttys0 edited this page Oct 16, 2024 · 7 revisions

Binwalk Docker image

Note

The following assumes you are running an Ubuntu, or similar, operating system. The sudo apt commands may be different for 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
docker build -t binwalk .

Tip

To get colorized output from Binwalk, use docker's -t flag.

To share a local directory with the docker image, use docker's -v flag.

The default working directory inside the docker image is /home/appuser.

sudo docker run -t -v .:/home/appuser binwalk ./firmware.bin