Subfinder
Subfinder Agent Setup for Subdomain Enum
Using
{{rootDomain}}
ReconNess replace {{rootDomain}}
to the root domain, for example, yahoo.com if we define that as a root domain adding the Targetsubfinder -d '{{rootDomain}}' -silent
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();
# -------- Agents dependencies --------
# To allow run subfinder inside the docker
RUN apt-get update && apt-get install -y git wget
RUN wget https://golang.org/dl/go1.16.linux-amd64.tar.gz
RUN tar -C /usr/local -xzf go1.16.linux-amd64.tar.gz
RUN export GOPATH=$HOME/go
RUN export PATH=$PATH:/usr/local/go/bin:$GOPATH/bin
RUN GO111MODULE=on /usr/local/go/bin/go get -v github.com/projectdiscovery/subfinder/v2/cmd/subfinder
# -------- End Agents dependencies --------
/root/go/bin/subfinder -d {{rootDomain}} -silent
Last modified 1yr ago