> For the complete documentation index, see [llms.txt](https://cookiez.gitbook.io/red-team/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cookiez.gitbook.io/red-team/general/tools/nuclei.md).

# Nuclei

You can download <https://github.com/projectdiscovery/nuclei> it from here or from:

```
go install -v github.com/projectdiscovery/nuclei/v3/cmd/nuclei@latest
```

```
sudo apt install nuclei
```

{% stepper %}
{% step %}

### How To Use

```
EXAMPLES:
Run nuclei on single host:
$ nuclei -target example.com

Run nuclei with specific template directories:
$ nuclei -target example.com -t http/cves/ -t ssl

Run nuclei against a list of hosts:
$ nuclei -list hosts.txt

Run nuclei with a JSON output:
$ nuclei -target example.com -json-export output.json

Run nuclei with sorted Markdown outputs (with environment variables):
$ MARKDOWN_EXPORT_SORT_MODE=template nuclei -target example.com -markdown-export nuclei_report/

```

{% endstep %}

{% step %}

### Community Templates

<https://github.com/xm1k3/cent> - aggregator of community templates

```
go install -v github.com/xm1k3/cent@latest
```

Clone and insert all the community templates into the `cent-nuclei-templates` folder

```
cent -p cent-nuclei-templates
```

{% endstep %}

{% step %}

### Scan With Community Templates

```
nuclei -u https://example.com -t ./cent-nuclei-templates -tags cve
```

```
nuclei -l urls.txt -t ./cent-nuclei-templates -tags cve
```

{% endstep %}
{% endstepper %}
