GoBusterDns

GoBuster Agent Setup for Subdomain Enum

GoBusterDns Command

Using {{domain}} ReconNess replace {{domain}} to the root domain, for example, yahoo.com if we define that as a root domain adding the Target

If we have the wordlist in ~/Desktop/tools/wordlist/dns.txt

gobuster dns -d {{domain}} -w ~/Desktop/tools/wordlist/dns.txt --wildcard -z

Click here to know more about GoBuster

GoBusterDns Script

using ReconNess.Core.Models;
if (lineInputCount < 13)
{
return new ScriptOutput();
}
var match = System.Text.RegularExpressions.Regex.Match(lineInput, @"^Found:\s(.*?)");
if (match.Success && match.Groups.Count == 2)
{
return new ScriptOutput { Subdomain = match.Groups[1].Value };
}
return new ScriptOutput();

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

GoBusterDns Dockerfile Entry

# -------- Agents dependencies --------
# To allow run gobuster inside the docker
RUN apt-get update && apt-get install -y git
RUN apt-get install -y wget
RUN wget https://dl.google.com/go/go1.13.linux-amd64.tar.gz
RUN tar -C /usr/local -xzf go1.13.linux-amd64.tar.gz
RUN echo 'export GOROOT=/usr/local/go' >> ~/.profile
RUN echo 'export GOPATH=$HOME/go' >> ~/.profile
RUN echo 'export PATH=$GOPATH/bin:$GOROOT/bin:$PATH' >> ~/.profile
RUN . ~/.profile && go get github.com/OJ/gobuster
RUN wget https://gist.githubusercontent.com/gorums/e471b842f1dd633469bffb5f750e0325/raw/96f4e51d96b2203f19f6381c8c545b278eaa0837/all.txt
# -------- End Agents dependencies --------

GoBusterDns Command for Docker

cd /root/go/bin/ && ./gobuster dns -d {{domain}} -w /app/all.txt --wildcard -z