Running an EyeWitness Docker Container (Great for macOS!)

During an engagement recently, I wanted to get an EyeWitness Docker container setup and working.

EyeWitness Docker – Introduction

For those of you who have never used it before, EyeWitness is a great tool for taking screenshots, especially of websites.

Unfortunately, it has a lot of requirements, some of which are a huge hassle in macOS.

Thankfully, Chris has included a dockerfile in the repo, so this will show how to set that up and run it.


First, you must have Docker installed.

Next, clone the repository to your machine.

Rays-MacBook-Pro:tools doyler$ git clone
Cloning into 'EyeWitness'...
remote: Counting objects: 2468, done.
remote: Compressing objects: 100% (32/32), done.
remote: Total 2468 (delta 19), reused 13 (delta 6), pack-reused 2427
Receiving objects: 100% (2468/2468), 1.38 MiB | 0 bytes/s, done.
Resolving deltas: 100% (1572/1572), done.


With the repository cloned, and Docker installed, it is time to build the container.

Rays-MacBook-Pro:EyeWitness doyler$ docker build --build-arg user=$USER --tag eyewitness .
Sending build context to Docker daemon  2.537MB
Step 1/11 : FROM phusion/baseimage
latest: Pulling from phusion/baseimage
22ecafbbcc4a: Pull complete 
580435e0a086: Pull complete  


[*] Setup script completed successfully, enjoy EyeWitness! 🙂

Removing intermediate container 6facb61bf09f
 ---> 788698f06a6e
Step 10/11 : USER $user
 ---> Running in e8461b03d83a
Removing intermediate container e8461b03d83a
 ---> 6aa13c7a3633
Step 11/11 : ENTRYPOINT ["python", "", "-d", "/tmp/EyeWitness/results", "--no-prompt"]
 ---> Running in 49c7d4023cf1
Removing intermediate container 49c7d4023cf1
 ---> 0adf7b8c6f36
Successfully built 0adf7b8c6f36
Successfully tagged eyewitness:latest

EyeWitness Docker – Execution

With the container setup, it was time to test my installation.

First, I verified my current directory structure and what files existed.

Rays-MacBook-Pro:eyewitness_test doyler$ pwd
Rays-MacBook-Pro:eyewitness_test doyler$ ls
external-targets-expanded.txt	nmap_fast.xml

Next, I modified one of the suggested commands for my usage.

Leave a Comment

Filed under Security Not Included

Leave a Reply

Your email address will not be published. Required fields are marked *