Naabu
Dnsprobe Agent Setup for port scanning tool

Naabu Command

Using {{domain}} ReconNess replace {{domain}} for the subdomain.
1
./naabu -host {{domain}} -silent
Copied!
This Agent run in each subdomain.

Naabu Script

1
using ReconNess.Core.Models;
2
3
var match = System.Text.RegularExpressions.Regex.Match(lineInput, @":(\d{1,5})");
4
if (match.Success)
5
{
6
return new ScriptOutput
7
{
8
Service = match.Groups[1].Value,
9
Port = int.Parse(match.Groups[1].Value),
10
IsAlive = true,
11
HasHttpOpen = "80".Equals(match.Groups[1].Value) || "443".Equals(match.Groups[1].Value)
12
};
13
}
14
15
return new ScriptOutput();
Copied!
Check the Readme on GitHub to know more about the Script.

Naabu Dockerfile Entry

1
# -------- Agents dependencies --------
2
3
# To allow run naabu inside the docker
4
5
RUN wget https://github.com/projectdiscovery/naabu/releases/download/v2.0.3/naabu-linux-amd64.tar.gz
6
RUN tar -xvf naabu-linux-amd64.tar.gz
7
RUN cp naabu-linux-amd64 /usr/local/bin/naabu
8
9
# -------- End Agents dependencies --------
Copied!

Naabu Command for Docker

1
naabu -host {{domain}} -silent
Copied!
Last modified 11mo ago