Massdns

Massdns Agent Setup for Subdomain Enum

Massdns Command

This agent utilizes the Reconness Unviersal Wrapper which must be installed for this agent to work. Using {{rootDomain}} ReconNess replace {{rootDomain}} for the root domain. Ex: yahoo.com

If we have MassdnsWrapper in the folder ~/Desktop/MassdnsWrapper/

cd ~/Desktop/MassdnsWrapper && ./reconness-universal-wrapper exec "/app/massdns/bin/massdns -r /app/massdns/lists/resolvers.txt *subdomains -w *outputFile -o S" -a api/targets/exportSubdomains/{{target}}/{{rootDomain}} --silent

Click here to know more about Massdns

Massdns Script

using ReconNess.Core.Models;
var match = System.Text.RegularExpressions.Regex.Match(lineInput, @"([a-z-_A-Z0-9.]+).\s.*\s([0-9.]+)");
if (match.Success)
{
return new ScriptOutput { Subdomain = match.Groups[1].Value, Ip = match.Groups[2].Value };
}
return new ScriptOutput();

Check the Readme on GitHub to know more about the Script.

Massdns Dockerfile Entry

Change <reconness username>, <reconness password> and <reconness.mydomain.com> with your username, password and domain where reconness is running.

# -------- Agents dependencies --------
# To allow run Massdns inside the docker
RUN apt-get update && apt-get install -y git build-essential wget
RUN wget https://dl.google.com/go/go1.14.6.linux-amd64.tar.gz
RUN tar -C /usr/local -xzf go1.14.6.linux-amd64.tar.gz
RUN git clone https://github.com/blechschmidt/massdns.git && cd massdns && make
RUN /usr/local/go/bin/go get -u github.com/hiddengearz/reconness-universal-wrapper
RUN /root/go/bin/reconness-universal-wrapper setup -u <reconness username> -p <reconness password> -s <reconness.mydomain.com>
# -------- End Agents dependencies --------

Massdns Command for Docker

/root/go/bin/reconness-universal-wrapper exec "/app/massdns/bin/massdns -r /app/massdns/lists/resolvers.txt *subdomains -w *outputFile -o S" -a api/targets/exportSubdomains/{{target}}/{{rootDomain}} --silent