Links

GoBusterDns

GoBuster Agent Setup for Subdomain Enum

GoBusterDns Command

Using {{rootDomain}} ReconNess replace {{rootDomain}} 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 {{rootDomain}} -w ~/Desktop/tools/wordlist/dns.txt --wildcard -z

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 wget
RUN wget https://golang.org/dl/go1.16.linux-amd64.tar.gz
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 /usr/local/go/bin/go get github.com/OJ/gobuster
# -------- End Agents dependencies --------

GoBusterDns Command for Docker

/root/go/bin/gobuster dns -d {{domain}} -w /app/Content/wordlists/subdomain_enum/default.txt --wildcard -z