Shuffledns Agent Setup for Subdomain Enum

Shuffledns Command

Using {{rootDomain}} ReconNess replace {{rootDomain}} for the root domain. To allow run this tool we need to have a resolvers.txt and massdns installed
If we have Massdns in the folder ~/massdns/ and the resolvers.txt here ~/
shuffledns -d {{rootDomain}} -r ~/resolvers.txt -w /app/all.txt -massdns ~/massdns/bin/massdns -silent"

Shuffledns Script

using ReconNess.Core.Models;
var match = System.Text.RegularExpressions.Regex.Match(lineInput, @"([^\.\/]+)(\.[^\.\/]+)+(?:\/|$)");
if (match.Success)
return new ScriptOutput { Subdomain = match.Groups[0].Value };
return new ScriptOutput();
Check the Readme on GitHub to know more about the Script.

Shuffledns Dockerfile Entry

# -------- Agents dependencies --------
# To allow run shuffledns inside the docker
RUN apt-get update && apt-get install -y git wget
RUN wget
RUN tar -C /usr/local -xzf go1.16.linux-amd64.tar.gz
RUN export GOPATH=$HOME/go
RUN export PATH=$PATH:/usr/local/go/bin:$GOPATH/bin
RUN GO111MODULE=on /usr/local/go/bin/go get -v
# -------- End Agents dependencies --------

Shuffledns Command for Docker

/root/go/bin/shuffledns -d {{rootDomain}} -r /app/Content/wordlists/dns_resolver_enum/default.txt -w /app/Content/wordlists/subdomain_enum/default.txt -massdns /app/massdns/bin/massdns -silent