Dirsearch
Dirsearch Agent Setup for Directory Discovery

Dirsearch Command

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

Dirsearch Script

using ReconNess.Core.Models;
if (lineInputCount < 10)
{
return new ScriptOutput();
}
var match = System.Text.RegularExpressions.Regex.Match(lineInput, @"](.*?) - (.*?) - (.*?) ->");
if (match.Success && match.Groups.Count == 4)
{
return new ScriptOutput
{
HttpDirectoryStatusCode = match.Groups[1].Value,
HttpDirectoryMethod = "GET",
HttpDirectorySize= match.Groups[2].Value,
HttpDirectory= match.Groups[3].Value.Replace("[0m", "")
};
}
return new ScriptOutput();
Check the Readme on GitHub to know more about the Script.

Dirsearch Dockerfile Entry

# -------- Agents dependencies --------
# To allow run dirsearch inside the docker
RUN apt-get update && apt-get install -y git python3 python3-pip
RUN git clone https://github.com/maurosoria/dirsearch.git
RUN cd dirsearch && pip3 install -r requirements.txt
# -------- End Agents dependencies --------

Dirsearch Command for Docker

/app/dirsearch/dirsearch.py -u {{domain}} -e php -r