Update README.md

dev
bauthard 2020-07-13 10:41:34 +05:30
parent 8984487b27
commit 3893c06dd5
1 changed files with 25 additions and 23 deletions

View File

@ -21,12 +21,13 @@ We have also [open-sourced a dedicated repository](https://github.com/projectdis
- [From Binary](#from-binary)
- [From Source](#from-source)
- [From Github](#from-github)
- [Running in a Docker Container](#running-in-a-docker-container)
- [Nuclei templates](#nuclei-templates)
- [Running nuclei](#running-nuclei)
- [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)
- [4. Running nuclei in a Docker](#running-in-a-docker-container)
- [Thanks](#thanks)
# Features
@ -100,31 +101,12 @@ In order to update the tool, you can use -u flag with `go get` command.
```bash
git clone https://github.com/projectdiscovery/nuclei.git
cd v2/cmd/nuclei/
cd nuclei/v2/cmd/nuclei/
go build .
mv nuclei /usr/local/bin/
nuclei -h
```
### Running in a Docker Container
You can use the [nuclei dockerhub image](https://hub.docker.com/r/projectdiscovery/nuclei). Simply run -
```bash
> docker pull projectdiscovery/nuclei
```
- After downloading or building the container, 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.
# Nuclei templates
You can download or update the nuclei templates using `update-templates` flag.
@ -139,6 +121,8 @@ or download it from [nuclei templates](https://github.com/projectdiscovery/nucle
> git clone https://github.com/projectdiscovery/nuclei-templates.git
```
**Please refer to [this guide](https://github.com/projectdiscovery/nuclei-templates/blob/master/GUIDE.md) to writing your own custom templates.**
# Running nuclei
### 1. Running nuclei with a single template.
@ -172,9 +156,27 @@ This will run the tool against all the hosts in `urls.txt` with all the template
> subfinder -d hackerone.com -silent | httpx -silent | nuclei -t cves/ -o results.txt
```
-------
### Running in a Docker Container
**Please refer to [this guide](https://github.com/projectdiscovery/nuclei-templates/blob/master/GUIDE.md) to build your own custom templates.**
You can use the [nuclei dockerhub image](https://hub.docker.com/r/projectdiscovery/nuclei). Simply run -
```bash
> docker pull projectdiscovery/nuclei
```
- After downloading or building the container, 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.
-------
# Thanks