Naabu

Dnsprobe Agent Setup for port scanning tool

Naabu Command

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

./naabu -host {{domain}} -silent

Click here to know more about Dnsprobe

This Agent run in each subdomain.

Naabu Script

using ReconNess.Core.Models;
var match = System.Text.RegularExpressions.Regex.Match(lineInput, @":(\d{1,5})");
if (match.Success)
{
return new ScriptOutput
{
Service = match.Groups[1].Value,
Port = int.Parse(match.Groups[1].Value)
};
}
return new ScriptOutput();

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

Naabu Dockerfile Entry

# -------- Agents dependencies --------
# To allow run zdns inside the docker
RUN apt-get update && apt-get install -y git wget
RUN wget https://dl.google.com/go/go1.13.4.linux-amd64.tar.gz
RUN tar -C /usr/local -xzf go1.13.4.linux-amd64.tar.gz
RUN echo 'export GOROOT=/usr/local/go' >> ~/.profile
RUN echo 'export GOPATH=$HOME/go' >> ~/.profile
RUN echo 'export PATH=$GOPATH/bin:$GOROOT/bin:$PATH' >> ~/.profile
RUN . ~/.profile && go get -v github.com/projectdiscovery/naabu/cmd/naabu
# -------- End Agents dependencies --------

Naabu Command for Docker

cd /root/go/bin/ && ./naabu -host {{domain}} -silent