GoBusterDns
GoBuster Agent Setup for Subdomain Enum
Using
{{rootDomain}}
ReconNess replace {{rootDomain}}
to the root domain, for example, yahoo.com if we define that as a root domain adding the TargetIf we have the wordlist in
~/Desktop/tools/wordlist/dns.txt
gobuster dns -d {{rootDomain}} -w ~/Desktop/tools/wordlist/dns.txt --wildcard -z
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();
# -------- 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 --------
/root/go/bin/gobuster dns -d {{domain}} -w /app/Content/wordlists/subdomain_enum/default.txt --wildcard -z
Last modified 1yr ago