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
1
gobuster dns -d {{rootDomain}} -w ~/Desktop/tools/wordlist/dns.txt --wildcard -z
Copied!

GoBusterDns Script

1
using ReconNess.Core.Models;
2
3
if (lineInputCount < 13)
4
{
5
return new ScriptOutput();
6
}
7
8
var match = System.Text.RegularExpressions.Regex.Match(lineInput, @"^Found:\s(.*?)");
9
if (match.Success && match.Groups.Count == 2)
10
{
11
return new ScriptOutput { Subdomain = match.Groups[1].Value };
12
}
13
14
return new ScriptOutput();
Copied!
Check the Readme on GitHub to know more about the Script.

GoBusterDns Dockerfile Entry

1
# -------- Agents dependencies --------
2
3
# To allow run gobuster inside the docker
4
5
RUN apt-get update && apt-get install -y git wget
6
RUN wget https://golang.org/dl/go1.16.linux-amd64.tar.gz
7
RUN tar -C /usr/local -xzf go1.16.linux-amd64.tar.gz
8
RUN export GOPATH=$HOME/go
9
RUN export PATH=$PATH:/usr/local/go/bin:$GOPATH/bin
10
RUN /usr/local/go/bin/go get github.com/OJ/gobuster
11
12
# -------- End Agents dependencies --------
Copied!

GoBusterDns Command for Docker

1
/root/go/bin/gobuster dns -d {{domain}} -w /app/Content/wordlists/subdomain_enum/default.txt --wildcard -z
Copied!
Last modified 4mo ago