OneForAll
OneForAll Agent Setup for Subdomain Enum

OneForAll Command

This agent utilizes the Reconness Unviersal Wrapper which must be installed for this agent to work. Using {{rootDomain}} ReconNess replace {{rootDomain}} for the root domain. Ex: yahoo.com
If we have OneForAllWrapper in the folder ~/Desktop/OneForAllWrapper/
1
cd ~/Desktop/OneForAllWrapper && ./reconness-universal-wrapper exec "python3 /app/OneForAll/oneforall.py --target {{rootDomain}} -path *outputDir/*.txt run" --silent
Copied!

OneForAll Script

1
using ReconNess.Core.Models;
2
3
var match = System.Text.RegularExpressions.Regex.Match(lineInput, @"([^\.\/]+)(\.[^\.\/]+)+(?:\/|$)");
4
if (match.Success)
5
{
6
return new ScriptOutput { Subdomain = match.Groups[0].Value };
7
}
8
9
return new ScriptOutput();
Copied!
Check the Readme on GitHub to know more about the Script.

OneForAll Dockerfile Entry

Change <reconness username>, <reconness password> and <reconness.mydomain.com> with your username, password and domain where reconness is running.
1
# -------- Agents dependencies --------
2
3
# To allow run OneForAll inside the docker
4
5
RUN apt-get update && apt-get install -y git wget python3 python3-pip
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 git clone https://github.com/shmilylty/OneForAll.git
11
RUN python3 -m pip install -U pip setuptools wheel
12
RUN pip3 install -r /app/OneForAll/requirements.txt
13
RUN /usr/local/go/bin/go get -u github.com/hiddengearz/reconness-universal-wrapper
14
RUN /root/go/bin/reconness-universal-wrapper setup -u <reconness username> -p <reconness password> -s <reconness.mydomain.com>
15
16
# -------- End Agents dependencies --------
Copied!

OneForAll Command for Docker

1
/root/go/bin/reconness-universal-wrapper exec "python3 /app/OneForAll/oneforall.py --target {{rootDomain}} -path *outputDir/*.txt run" --silent
Copied!
Last modified 10mo ago