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

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 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 /usr/local/go/bin/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

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