Httprobe

Httprobe Agent Setup for Scan HTTP/S Open

Httprobe Command

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

echo '{{domain}}' | httprobe

Click here to know more about Httprobe

This Agent run in each subdomain.

Httprobe Script

using ReconNess.Core.Models;
if (string.IsNullOrEmpty(lineInput))
{
return new ScriptOutput();
}
if (lineInput.StartsWith("https"))
{
return new ScriptOutput { IsAlive = true, HasHttpOpen = true, Service = "https", Port = 443};
}
if (lineInput.StartsWith("http"))
{
return new ScriptOutput { IsAlive = true, HasHttpOpen = true, Service = "http", Port = 80};
}
return new ScriptOutput();

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

Httprobe Dockerfile Entry

# -------- Agents dependencies --------
# To allow run httprobe 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 github.com/tomnomnom/httprobe
# -------- End Agents dependencies --------

Httprobe Command for Docker

cd /root/go/bin/ && echo '{{domain}}' | ./httprobe