Whenever you want to install or run an application, it is worth checking whether or not a Dockerfile exists that can be used instead.

Let’s start with a program we used in a previous unit for reconnaissance, Project Discovery’s subfinder

As a refresher, in the previous unit, Web Application Attacks, we used subfinder to perform subdomain enumeration on a target site.

For example, we could point subfinder at a domain like airbnb.com and it would produce a list of known subdomains using various OSINT sources.

However, subfinder is written using the go programming language.

Installing go and getting everything set up to run programs written in go is certainly worth your time, but Docker can save us a lot of trouble!

Go to the subfinder GitHub page here and copy the address we need to clone this repository.

image.png

Clone the repository on your Kali VM.

git clone <https://github.com/projectdiscovery/subfinder.git>

cd into the directory we just cloned.

cd subfinder
ls

image.png

Build the image with the tag -t subfinder.

docker build -t subfinder .