OneForAll Agent Setup for Subdomain Enum

OneForAll Command

Using {{rootDomain}} ReconNess replace {{rootDomain}} to the root domain, for example, if we define that as a root domain adding the Target

If we have OneForAllWrapper in the folder ~/Desktop/OneForAllWrapper/

cd ~/Desktop/OneForAllWrapper && /usr/local/go/bin/go run OneForAllWrapper.go -d {{rootDomain}}

Click here to know more about OneForAll

OneForAll Script

using ReconNess.Core.Models;
var match = System.Text.RegularExpressions.Regex.Match(lineInput, @"([^\.\/]+)(\.[^\.\/]+)+(?:\/|$)");
if (match.Success)
return new ScriptOutput { Subdomain = match.Groups[0].Value };
return new ScriptOutput();

Check the Readme on GitHub to know more about the Script.

OneForAll Dockerfile Entry

# -------- Agents dependencies --------
# To allow run OneForAll inside the docker
RUN apt-get update && apt-get install -y git python3 python3-pip
RUN apt-get install -y wget
RUN wget
RUN tar -C /usr/local -xzf go1.13.4.linux-amd64.tar.gz
RUN echo 'export GOROOT=/usr/local/go' >> ~/.profile
RUN echo 'export GOPATH=$HOME/go' >> ~/.profile
RUN echo 'export PATH=$GOPATH/bin:$GOROOT/bin:$PATH' >> ~/.profile
RUN . ~/.profile
RUN wget
RUN git clone
RUN python3 -m pip install -U pip setuptools wheel
RUN pip3 install -r /app/OneForAll/requirements.txt
# -------- End Agents dependencies --------

OneForAll Command for Docker

/usr/local/go/bin/go run OneForAllWrapper.go -d {{rootDomain}}