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

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

Amass Dockerfile Entry

1
# -------- Agents dependencies --------
2
3
# To allow run amass inside the docker
4
5
RUN apt-get update && apt-get install -y wget unzip
6
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
7
RUN mv /tmp/amass_v3.4.2_linux_amd64/amass /bin
8
9
# -------- End Agents dependencies --------
Copied!

Ammas Command for Docker

1
/bin/amass enum --passive -d {{rootDomain}}
Copied!
Last modified 4mo ago