Skip to content

Nuclei

100 commands

A fast, template-based vulnerability scanner. Thousands of community YAML templates detect CVEs, misconfigurations and exposures.

  • vulnerability scanning
  • templates
  • CVE
  • ProjectDiscovery

Install Nuclei

sudo apt install nuclei

Basic Template Scanning1

nuclei -u https://example.com

Scans a single target URL using all default Nuclei templates.

Target Input Methods2

nuclei -l targets.txt

Scans a list of targets provided in a text file.

cat targets.txt | nuclei

Accepts targets from standard input (stdin) via piping.

Template Selection8

nuclei -u https://example.com -t templates/cves/

Runs only the templates located in a specific directory.

nuclei -u https://example.com -t cves/2023/CVE-2023-1234.yaml

Executes a single specific template file against the target.

nuclei -u https://example.com -tl

Lists all available templates without running a scan.

nuclei -u https://example.com -a projectdiscovery

Runs templates created by a specific author.

Link
nuclei -u https://example.com -id git-config

Runs specific templates matching the provided template IDs.

Link
nuclei -u https://example.com -eid token-spray

Excludes specific template IDs from the execution.

Link
nuclei -u https://example.com -type http

Runs only templates of the 'http' protocol type.

Link
nuclei -u https://example.com -type dns

Runs only templates of the 'dns' protocol type.

Link

Tag Filtering3

nuclei -u https://example.com -tags cve

Runs all templates tagged with 'cve' against the target.

nuclei -u https://example.com -tags cve,misconfig

Runs templates that match either the 'cve' or 'misconfig' tags.

nuclei -u https://example.com -etags intrusive

Excludes templates tagged as 'intrusive' from the scan.

Severity Filtering3

nuclei -u https://example.com -s critical

Restricts the scan to templates with 'critical' severity only.

Link
nuclei -u https://example.com -s high,critical

Runs templates with either 'high' or 'critical' severity levels.

Link
nuclei -u https://example.com -es info,low

Excludes templates with 'info' or 'low' severity from the scan.

Link

Workflow Execution2

nuclei -u https://example.com -w workflows/wordpress-workflow.yaml

Executes a defined workflow to run templates in a specific sequence.

Link
nuclei -u https://example.com -w workflows/

Runs all workflows found in the specified directory.

Link

Output Formats6

nuclei -u https://example.com -o output.txt

Saves the scan results to a plain text file.

Link
nuclei -u https://example.com -j

Outputs the findings in JSON format to the console.

Link
nuclei -u https://example.com -je output.json

Writes the findings to a JSON file.

Link
nuclei -u https://example.com -jlr

Writes JSON output line by line for easier streaming processing.

Link
nuclei -u https://example.com -se output.sarif

Exports the findings in SARIF format for CI/CD integration.

Link
nuclei -u https://example.com -me output.md

Exports the findings in Markdown format.

Link

Output Customization3

nuclei -u https://example.com -nm

Disables printing metadata in the CLI output to reduce noise.

Link
nuclei -u https://example.com -silent

Displays only the findings without any progress bars or banners.

Link
nuclei -u https://example.com -ts

Adds a timestamp to each line of the output log.

Link

Performance Tuning7

nuclei -u https://example.com -rl 150

Limits the scan to a maximum of 150 requests per second.

Link
nuclei -u https://example.com -rlm 60

Limits the scan to a maximum of 60 requests per minute.

Link
nuclei -u https://example.com -c 50

Sets the concurrency level to execute 50 templates in parallel.

Link
nuclei -u https://example.com -bs 25

Sets the bulk size to 25 hosts to be analyzed in parallel per template.

Link
nuclei -u https://example.com -timeout 10

Sets the HTTP timeout to 10 seconds before giving up on a request.

Link
nuclei -u https://example.com -retries 3

Retries failed requests up to 3 times before marking them as failed.

Link
nuclei -u https://example.com -mhe 5

Skips the host after 5 consecutive connection errors.

Link

Rate Limiting1

nuclei -u https://example.com -lp

Pauses the scan if the target server starts responding with errors.

Link

Network Configuration7

nuclei -u https://example.com -p http://127.0.0.1:8080

Routes all traffic through an HTTP proxy (e.g., Burp Suite).

Link
nuclei -u https://example.com -proxy-socks-url socks5://127.0.0.1:9050

Routes all traffic through a SOCKS5 proxy.

Link
nuclei -u https://example.com -ni

Uses the network interface for scanning without performing DNS lookups.

Link
nuclei -u https://example.com -scan-all-ips

Scans all resolved IP addresses for the target domain.

Link
nuclei -u https://example.com -ip 192.168.1.1

Forces the scan to use a specific IP address for the target domain.

Link
nuclei -u https://example.com -interface eth0

Binds the scan traffic to a specific network interface.

Link
nuclei -u https://example.com -source-ip 10.0.0.5

Sets a specific source IP address for outgoing requests.

Link

Headers & Auth4

nuclei -u https://example.com -H "User-Agent: BugBountyScanner"

Adds a custom User-Agent header to all HTTP requests.

Link
nuclei -u https://example.com -H "Authorization: Bearer KEY"

Adds an authorization header to authenticate requests.

Link
nuclei -u https://example.com -header "X-Bug-Bounty: true"

Adds a custom header to identify scan traffic.

Link
nuclei -u https://example.com -V

Displays the version of the installed Nuclei engine.

Link

Debugging5

nuclei -u https://example.com -v

Enables verbose mode to show executed templates and errors.

Link
nuclei -u https://example.com -vv

Enables extra verbose mode to show request and response details.

Link
nuclei -u https://example.com -debug

Enables debug mode showing all request/response pairs.

Link
nuclei -u https://example.com -debug-req

Shows only the HTTP requests sent during the scan.

Link
nuclei -u https://example.com -debug-resp

Shows only the HTTP responses received during the scan.

Link

Advanced Interactions3

nuclei -u https://example.com -im interactsh

Uses the default interactsh server for out-of-band testing.

Link
nuclei -u https://example.com -server http://myserver.com

Uses a self-hosted interactsh server for callbacks.

Link
nuclei -u https://example.com -no-interactsh

Disables any out-of-band interaction capability.

Link

Template Management5

nuclei -update

Updates the Nuclei binary to the latest version.

Link
nuclei -ut

Updates the Nuclei templates to the latest version.

Link
nuclei -ud templates/custom

Sets a custom directory for storing and reading templates.

Link
nuclei -validate

Validates the syntax of all available templates.

Link
nuclei -t custom-template.yaml -validate

Validates the syntax of a specific custom template file.

Link

Advanced Scanning6

nuclei -u https://example.com -headless

Enables headless mode to scan using a browser automation engine.

Link
nuclei -u https://example.com -sb

Shows the headless browser window during the scan.

Link
nuclei -u https://example.com -sc

Captures and saves a screenshot on successful match in headless mode.

Link
nuclei -u https://example.com -js

Enables the Javascript protocol execution in templates.

Link
nuclei -u https://example.com -code

Enables the Code protocol execution in templates.

Link
nuclei -u https://example.com -fuzz

Enables fuzzing mode to discover unknown vulnerabilities.

Link

Configuration2

nuclei -u https://example.com -config config.yaml

Loads scanning configuration from a specific YAML file.

Link
nuclei -rc config.yaml

Overwrites the default configuration file with the provided one.

Link

Environment2

nuclei -u https://example.com -env-vars VAR=value

Passes environment variables to the templates during execution.

Link
nuclei -u https://example.com -var username=admin

Passes specific variables to replace placeholders in templates.

Link

Resume1

nuclei -u https://example.com -resume scan-state.json

Resumes a previously interrupted scan from a state file.

Link

Output Reporting2

nuclei -u https://example.com -irr

Includes the full request and response in the JSON output.

Link
nuclei -u https://example.com -iser

Includes server error responses in the output.

Link

Cloud Integration2

nuclei -u https://example.com -cloud

Uses the ProjectDiscovery Cloud Platform for scanning.

Link
nuclei -u https://example.com -dashboard

Uploads the scan results to the ProjectDiscovery cloud dashboard.

Link

Offline Scanning1

nuclei -u https://example.com -disable-update-check

Disables the automatic check for engine and template updates.

Link

Performance Stats3

nuclei -u https://example.com -stats

Displays real-time statistics about the running scan.

Link
nuclei -u https://example.com -stats-interval 10

Sets the interval for displaying statistics to every 10 seconds.

Link
nuclei -u https://example.com -metrics 8080

Exposes scan metrics on port 8080 for monitoring via Prometheus.

Link

Automated Workflows2

nuclei -u https://example.com -as

Enables automatic scan mode to deduce templates based on technology detection.

Link
nuclei -u https://example.com -new-templates

Runs only the templates added in the latest update.

Link

Advanced Filtering2

nuclei -u https://example.com -etags intrusive -itags cve

Includes 'cve' tags but specifically excludes 'intrusive' tags.

Link
nuclei -u https://example.com -imac

Excludes templates that only match at the protocol level without a result.

Link

Input Handling1

nuclei -u https://example.com -input-read-timeout 5s

Sets the timeout for reading input from stdin to 5 seconds.

Link

Network Tuning2

nuclei -u https://example.com -stream

Enables stream mode for handling large inputs with low memory usage.

Link
nuclei -u https://example.com -skip-host 10.0.0.1

Excludes a specific host IP from the scan list.

Link

Template Tuning1

nuclei -u https://example.com -tlm

Lists all matched templates from the previous run.

Link

Scanning Mode1

nuclei -u https://example.com -dast

Runs only DAST-related templates designed for dynamic testing.

Link

Local Scanning1

nuclei -target /var/www/html -t file-templates/

Scans a local directory using file-based templates.

Link

Reporting2

nuclei -u https://example.com -mr 10

Limits the number of results to display to a maximum of 10.

Link
nuclei -u https://example.com -omit-raw

Omits the raw request and response data from the JSON output.

Link

Output1

nuclei -u https://example.com -no-color

Disables colored output in the terminal.

Link

Customization2

nuclei -u https://example.com -project

Uses a project folder to avoid sending same requests multiple times.

Link
nuclei -u https://example.com -project-path ./scan-data

Specifies the directory to store project-based scan data.

Link

Advanced4

nuclei -u https://example.com -stop-at-first-match

Stops processing a template or host after the first valid match.

Link
nuclei -u https://example.com -max-redirects 5

Sets the maximum number of HTTP redirects to follow.

Link
nuclei -u https://example.com -disable-redirects

Disables following HTTP redirects completely.

Link
nuclei -u https://example.com -sni example.com

Specifies the Server Name Indication (SNI) for TLS connections.

Link

CI/CD1

nuclei -l targets.txt -c 50 -silent -je results.json

Optimized command for CI/CD pipelines producing silent JSON output.

Link

Full Automation1

nuclei -up && nuclei -u https://example.com -as -c 50 -rl 200 -je scan.json

Updates templates then runs an automated scan with high performance settings.

Link