Ping

Ping Agent Setup for Scan if is Alive

Ping Command

Using {{domain}} ReconNess replace {{domain}} for the subdomain.

ping {{domain}} -c 1

This Agent run in each subdomain.

Ping Script

using ReconNess.Core.Models;
var match = System.Text.RegularExpressions.Regex.Match(lineInput, @"PING\s(.*?)\s\((.*?)\)");
if (match.Success && match.Groups.Count == 3)
{
return new ScriptOutput { Ip = match.Groups[2].Value, Subdomain = match.Groups[1].Value };
}
if (lineInput.Contains("icmp_seq"))
{
return new ScriptOutput { IsAlive = true};
}
return new ScriptOutput();

Check the Readme on GitHub to know more about the Script.

Ping Dockerfile Entry

# -------- Agents dependencies --------
# To allow run ping inside the docker
RUN apt-get update && apt-get install -y iputils-ping
# -------- End Agents dependencies --------