Ping
Ping Agent Setup for Scan if is Alive

Ping Command

Using {{domain}} ReconNess replace {{domain}} for the subdomain.
1
ping {{domain}} -c 1
Copied!
This Agent run in each subdomain.

Ping Script

1
using ReconNess.Core.Models;
2
3
var match = System.Text.RegularExpressions.Regex.Match(lineInput, @"PING\s(.*?)\s\((.*?)\)");
4
if (match.Success && match.Groups.Count == 3)
5
{
6
return new ScriptOutput { Ip = match.Groups[2].Value, Subdomain = match.Groups[1].Value };
7
}
8
9
if (lineInput.Contains("icmp_seq"))
10
{
11
return new ScriptOutput { IsAlive = true };
12
}
13
14
return new ScriptOutput();
Copied!
Check the Readme on GitHub to know more about the Script.

Ping Dockerfile Entry

1
# -------- Agents dependencies --------
2
3
# To allow run ping inside the docker
4
5
RUN apt-get update && apt-get install -y iputils-ping
6
7
# -------- End Agents dependencies --------
Copied!
Last modified 1yr ago