Skip to content

Latest commit

 

History

History
59 lines (45 loc) · 1.45 KB

File metadata and controls

59 lines (45 loc) · 1.45 KB

Docker Usage Guide

Building the Docker Image

sudo docker build -t dnsprober .

Running dnsprober in Docker

sudo docker run --rm dnsprober --help

Using a File as Input in Docker

When using files as input, you need to mount the file into the container using -v.

sudo docker run --rm -v /path/to/input/input.txt:/input.txt dnsprober -l /input.txt

Example Commands

Using Subdominator Output as Input

subdominator -d hackerone.com -s | sudo docker run --rm -i dnsprober --response -s
subdominator -d hackerone.com -s | sudo docker run --rm -i dnsprober --dns-response -s
subdominator -d hackerone.com -s | sudo docker run --rm -i dnsprober --response -s --cname

Wildcard Filtering

sudo docker run --rm dnsprober -d freshworks.com -w wordlist.txt --wildcard-domain wildcard-domain.freshworks.com

PTR Record Lookup for an IP Range

prips 157.240.19.0/24 | sudo docker run --rm -i dnsprober --ptr --response

Running with Custom Resolvers

sudo docker run --rm -v /path/to/resolvers.txt:/resolvers.txt dnsprober -d example.com -r /resolvers.txt

Saving Output to a File

sudo docker run --rm -v $(pwd):/output dnsprober -d example.com -o /output/results.txt

Notes

  • Use -i when piping data into docker run.
  • Mount files using -v if they are needed inside the container.
  • The --rm flag ensures the container is removed after execution.