Links

Amass

Amass Agent Setup for Subdomain Enum

Amass 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
/bin/amass enum --passive -d {{rootDomain}}

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

Amass Dockerfile Entry

# -------- Agents dependencies --------
# To allow run amass inside the docker
RUN apt-get update && apt-get install -y wget unzip
RUN cd /tmp/ ; wget https://github.com/OWASP/Amass/releases/download/v3.4.2/amass_v3.4.2_linux_amd64.zip ; unzip amass_v3.4.2_linux_amd64.zip
RUN mv /tmp/amass_v3.4.2_linux_amd64/amass /bin
# -------- End Agents dependencies --------

Ammas Command for Docker

/bin/amass enum --passive -d {{rootDomain}}