Dirsearch
Dirsearch Agent Setup for Directory Discovery

Dirsearch Command

Using {{domain}} ReconNess replace {{domain}} for the subdomain
1
python3 dirsearch.py -u {{domain}} -e php -r
Copied!

Dirsearch Script

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

Dirsearch Dockerfile Entry

1
# -------- Agents dependencies --------
2
3
# To allow run dirsearch inside the docker
4
5
RUN apt-get update && apt-get install -y git python3 python3-pip
6
RUN git clone https://github.com/maurosoria/dirsearch.git
7
RUN cd dirsearch && pip3 install -r requirements.txt
8
9
# -------- End Agents dependencies --------
Copied!

Dirsearch Command for Docker

1
/app/dirsearch/dirsearch.py -u {{domain}} -e php -r
Copied!
Last modified 4mo ago