Nuclei Agent Setup to provides vulnerability scan

Nuclei Command

Using {{domain}} ReconNess replace {{domain}} for the subdomain.
If we have the templates in /root/nuclei-templates
nuclei -u {{domain}} -t /root/nuclei-templates -silent
This Agent run in each subdomain.

Nuclei Script

We save the vulnerability info inside the Subdomain's Notes
return new ReconNess.Core.Models.ScriptOutput { Note = lineInput };
Check the Readme on GitHub to know more about the Script.

Nuclei Dockerfile Entry

# -------- Agents dependencies --------
# To allow run nuclei inside the docker
RUN apt-get update && apt-get install -y git wget
RUN wget
RUN tar -C /usr/local -xzf go1.14.6.linux-amd64.tar.gz
RUN GO111MODULE=on /usr/local/go/bin/go get -v
RUN /root/go/bin/nuclei -update-templates
# -------- End Agents dependencies --------

Nuclei Command for Docker

/root/go/bin/nuclei -u {{domain}} -t /root/nuclei-templates -silent