GoBusterDir
GoBuster Agent Setup for Directory Discovery

GoBusterDir Command

Using {{domain}} ReconNess replace {{domain}} for the subdomain.
If we have the wordlist in ~/Desktop/tools/wordlist/directories.txt
1
gobuster dir -u https://{{domain}} -w ~/Desktop/tools/wordlist/directories.txt go run main.go dir -u https://{{domain}} -w ~/Desktop/tools/wordlist/directories.txt -s 200,204 -z -k -l -r --wildcard
Copied!

GoBusterDir Script

1
using ReconNess.Core.Models;
2
3
if (lineInputCount < 15)
4
{
5
return new ScriptOutput();
6
}
7
8
var match = System.Text.RegularExpressions.Regex.Match(lineInput, @"(.*?)\(Status: (.*?)\) \[Size: (.*?)\]");
9
if (match.Success && match.Groups.Count == 4)
10
{
11
return new ScriptOutput
12
{
13
HttpDirectory = match.Groups[1].Value,
14
HttpDirectoryMethod = "GET",
15
HttpDirectoryStatusCode = match.Groups[2].Value,
16
HttpDirectorySize = match.Groups[3].Value,
17
};
18
}
19
20
return new ScriptOutput();
Copied!
Check the Readme on GitHub to know more about the Script.

GobusterDir 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!

GoBusterDir Command for Docker

1
/root/go/bin/gobuster dir -u https://{{domain}} -w /app/Content/wordlists/dir_enum/default.txt -s 200,204 -z -k -l -r --wildcard
Copied!
Last modified 3mo ago