Subfinder
Subfinder Agent Setup for Subdomain Enum

Subfinder Command

Using {{rootDomain}} ReconNess replace {{rootDomain}} to the root domain, for example, yahoo.com if we define that as a root domain adding the Target
1
subfinder -d '{{rootDomain}}' -silent
Copied!

Subfinder 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.

Subfinder Dockerfile Entry

1
# -------- Agents dependencies --------
2
3
# To allow run subfinder 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 GO111MODULE=on /usr/local/go/bin/go get -v github.com/projectdiscovery/subfinder/v2/cmd/subfinder
11
12
# -------- End Agents dependencies --------
Copied!

Subfinder Command for Docker

1
/root/go/bin/subfinder -d {{rootDomain}} -silent
Copied!
Last modified 4mo ago