Ping
Ping Agent Setup for Scan if is Alive
Using
{{domain}}
ReconNess replace {{domain}}
for the subdomain.ping {{domain}} -c 1
This Agent run in each subdomain.

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();
# -------- Agents dependencies --------
# To allow run ping inside the docker
RUN apt-get update && apt-get install -y iputils-ping
# -------- End Agents dependencies --------
Last modified 3yr ago