2020-04-04 16:46:21 +00:00
< h1 align = "left" >
< img src = "static/nuclei-logo.png" alt = "nuclei" width = "200px" > < / a >
< br >
< / h1 >
[![License ](https://img.shields.io/badge/license-MIT-_red.svg )](https://opensource.org/licenses/MIT)
[![Go Report Card ](https://goreportcard.com/badge/github.com/projectdiscovery/nuclei )](https://goreportcard.com/report/github.com/projectdiscovery/nuclei)
[![contributions welcome ](https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat )](https://github.com/projectdiscovery/nuclei/issues)
2020-04-05 11:36:09 +00:00
Nuclei is a fast tool for configurable targeted scanning based on templates offering massive extensibility and ease of use.
2020-04-03 18:47:57 +00:00
2020-04-04 19:01:40 +00:00
Nuclei is used to send requests across targets based on a template leading to zero false positives and providing effective scanning for known paths. Main use cases for nuclei are during initial reconnaissance phase to quickly check for low hanging fruits or CVEs across targets that are known and easily detectable. It uses [retryablehttp-go library ](https://github.com/projectdiscovery/retryablehttp-go ) designed to handle various errors and retries in case of blocking by WAFs, this is also one of our core modules from custom-queries.
2020-04-04 17:06:04 +00:00
2020-04-05 19:29:30 +00:00
We have also [open-sourced a dedicated repository ](https://github.com/projectdiscovery/nuclei-templates ) to maintain various type of templates, we hope that you will contribute there too. Templates are provided in hopes that these will be useful and will allow everyone to build their own templates for the scanner. Checkout the guide at [**GUIDE.md** ](https://github.com/projectdiscovery/nuclei-templates/blob/master/GUIDE.md ) for a primer on nuclei templates.
2020-04-04 16:46:21 +00:00
# Resources
- [Resources ](#resources )
- [Features ](#features )
- [Usage ](#usage )
- [Installation Instructions ](#installation-instructions )
- [From Binary ](#from-binary )
- [From Source ](#from-source )
2020-05-19 07:48:57 +00:00
- [Running in a Docker Container ](#running-in-a-docker-container )
2020-04-04 16:46:21 +00:00
- [Running nuclei ](#running-nuclei )
2020-04-28 16:34:09 +00:00
- [1. Running nuclei with a single template. ](#1-running-nuclei-with-a-single-template )
- [2. Running nuclei with multiple templates. ](#2-running-nuclei-with-multiple-templates )
- [3. Automating nuclei with subfinder and any other similar tool. ](#3-automating-nuclei-with-subfinder-and-any-other-similar-tool )
2020-04-04 19:16:52 +00:00
- [Thanks ](#thanks )
2020-04-04 16:46:21 +00:00
# Features
< h1 align = "left" >
2020-04-04 19:23:45 +00:00
< img src = "static/nuclei-run.png" alt = "nuclei" width = "700px" > < / a >
2020-04-04 16:46:21 +00:00
< br >
< / h1 >
- Simple and modular code base making it easy to contribute.
2020-04-04 19:01:40 +00:00
- Fast And fully configurable using a template based engine.
2020-04-04 17:06:04 +00:00
- Handles edge cases doing retries, backoffs etc for handling WAFs.
- Smart matching functionality for zero false positive scanning.
2020-04-04 16:46:21 +00:00
# Usage
```bash
nuclei -h
```
This will display help for the tool. Here are all the switches it supports.
2020-04-28 16:34:09 +00:00
| Flag | Description | Example |
|-------------------|-------------------------------------------------------|----------------------------------------------------|
| -c | Number of concurrent requests (default 10) | nuclei -c 100 |
| -l | List of urls to run templates | nuclei -l urls.txt |
| -t | Templates input file/files to check across hosts | nuclei -t git-core.yaml |
2020-05-03 16:48:19 +00:00
| -t | Templates input file/files to check across hosts | nuclei -t nuclei-templates/cves/ |
2020-04-28 16:34:09 +00:00
| -nC | Don't Use colors in output | nuclei -nC |
| -o | File to save output result (optional) | nuclei -o output.txt |
| -silent | Show only found results in output | nuclei -silent |
| -retries | Number of times to retry a failed request (default 1) | nuclei -retries 1 |
| -timeout | Seconds to wait before timeout (default 5) | nuclei -timeout 5 |
| -v | Show Verbose output | nuclei -v |
| -version | Show version of nuclei | nuclei -version |
2020-04-29 13:22:47 +00:00
| -proxy-url | Proxy URL | nuclei -proxy-url http://user:pass@this.is.a.proxy:8080 |
| -proxy-socks-url | Proxy Socks URL | nuclei -proxy-socks-url socks5://user:pass@this.is.a.proxy.socks:9050 |
2020-05-21 22:57:16 +00:00
| -H | Custom Header | nuclei -H "x-bug-bounty: hacker" |
2020-04-04 16:46:21 +00:00
# Installation Instructions
### From Binary
2020-04-04 16:52:00 +00:00
The installation is easy. You can download the pre-built binaries for your platform from the [Releases ](https://github.com/projectdiscovery/nuclei/releases/ ) page. Extract them using tar, move it to your `$PATH` and you're ready to go.
2020-04-04 16:46:21 +00:00
```bash
2020-05-22 17:43:07 +00:00
> tar -xzvf nuclei-linux-amd64.tar.gz
2020-04-04 16:46:21 +00:00
> mv nuclei-linux-amd64 /usr/bin/nuclei
> nuclei -h
```
### From Source
nuclei requires go1.13+ to install successfully. Run the following command to get the repo -
```bash
> GO111MODULE=on go get -u -v github.com/projectdiscovery/nuclei/cmd/nuclei
```
In order to update the tool, you can use -u flag with `go get` command.
2020-05-19 07:48:57 +00:00
### Running in a Docker Container
- Clone the repo using `git clone https://github.com/projectdiscovery/nuclei.git`
- Build your docker container
```bash
> docker build -t projectdiscovery/nuclei .
```
- After building the container using either way, run the following:
```bash
> docker run -it projectdiscovery/nuclei
```
For example, this will run the tool against all the hosts in `urls.txt` and output the results to your host file system:
```bash
> cat urls.txt | docker run -v /path-to-nuclei-templates:/go/src/app/ -i projectdiscovery/nuclei -t ./files/git-config.yaml > results.txt
```
Remember to change `/path-to-nuclei-templates` to the real path on your host file system.
2020-04-04 16:46:21 +00:00
# Running nuclei
### 1. Running nuclei with a single template.
This will run the tool against all the hosts in `urls.txt` and returns the matched results.
```bash
2020-04-04 16:52:00 +00:00
> nuclei -l urls.txt -t git-core.yaml -o results.txt
2020-04-04 16:46:21 +00:00
```
You can also pass the list of hosts at standard input (STDIN). This allows for easy integration in automation pipelines.
This will run the tool against all the hosts in `urls.txt` and returns the matched results.
```bash
2020-04-04 16:52:00 +00:00
> cat urls.txt | nuclei -t git-core.yaml -o results.txt
2020-04-04 16:46:21 +00:00
```
2020-04-04 17:06:04 +00:00
### 2. Running nuclei with multiple templates.
2020-04-04 16:46:21 +00:00
2020-04-04 17:06:04 +00:00
This will run the tool against all the hosts in `urls.txt` with all the templates in the `path-to-templates` directory and returns the matched results.
2020-04-04 16:46:21 +00:00
```bash
2020-05-03 16:48:19 +00:00
> nuclei -l urls.txt -t nuclei-templates/cves/ -o results.txt
2020-04-04 16:46:21 +00:00
```
2020-04-05 00:18:18 +00:00
### 3. Automating nuclei with subfinder and any other similar tool.
```bash
2020-05-03 16:48:19 +00:00
> subfinder -d hackerone.com -silent | httprobe | nuclei -t nuclei-templates/cves/ -o results.txt
2020-04-05 00:18:18 +00:00
```
2020-04-04 19:15:17 +00:00
Nuclei supports glob expression ending in `.yaml` meaning multiple templates can be easily passed to be executed one after the other. Please refer to [this guide ](https://github.com/projectdiscovery/nuclei-templates/blob/master/GUIDE.md ) to build your own custom templates.
2020-04-04 16:46:21 +00:00
2020-04-04 19:01:40 +00:00
# Thanks
2020-04-04 16:46:21 +00:00
2020-05-21 23:02:54 +00:00
nuclei is made with 🖤 by the [projectdiscovery ](https://projectdiscovery.io ) team. Community contributions have made the project what it is. See the ** [Thanks.md ](https://github.com/projectdiscovery/nuclei/blob/master/THANKS.md )** file for more details. Do also check out these similar awesome projects that may fit in your workflow:
2020-04-05 11:26:13 +00:00
2020-05-21 23:02:54 +00:00
[https://portswigger.net/burp ](https://portswigger.net/burp )</ br >
[https://github.com/ffuf/ffuf ](https://github.com/ffuf/ffuf )</ br >
[https://github.com/jaeles-project/jaeles ](https://github.com/jaeles-project/jaeles )</ br >
2020-04-05 11:26:13 +00:00
[https://github.com/ameenmaali/qsfuzz ](https://github.com/ameenmaali/qsfuzz )</ br >
[https://github.com/proabiral/inception ](https://github.com/proabiral/inception )</ br >
[https://github.com/hannob/snallygaster ](https://github.com/hannob/snallygaster )</ br >