https://github.com/xm1k3/cent
Community edition nuclei templates, a simple tool that allows you to organize all the Nuclei templates offered by the community in one place
https://github.com/xm1k3/cent
bugbounty golang hacktoberfest nuclei nuclei-templates penetration-testing pentesting templates
Last synced: 2 months ago
JSON representation
Community edition nuclei templates, a simple tool that allows you to organize all the Nuclei templates offered by the community in one place
- Host: GitHub
- URL: https://github.com/xm1k3/cent
- Owner: xm1k3
- License: apache-2.0
- Created: 2021-05-31T11:34:14.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2025-08-23T20:16:53.000Z (10 months ago)
- Last Synced: 2026-02-02T07:40:16.678Z (4 months ago)
- Topics: bugbounty, golang, hacktoberfest, nuclei, nuclei-templates, penetration-testing, pentesting, templates
- Language: Go
- Homepage:
- Size: 1.08 MB
- Stars: 1,036
- Watchers: 22
- Forks: 166
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
- WebHackersWeapons - cent - templates`](/categorize/tags/nuclei-templates.md)|[](/categorize/langs/Go.md)| (Weapons / Tools)
- awesome-hacking-lists - xm1k3/cent - Community edition nuclei templates, a simple tool that allows you to organize all the Nuclei templates offered by the community in one place (Go)
README

Community edition nuclei templates, a simple tool that allows you to organize all the Nuclei templates offered by the community in one place.
# Install
```
go install -v github.com/xm1k3/cent/v2@latest
```
Or [download from releases](https://github.com/xm1k3/cent/releases)
after installation run `cent init` to initialize cent with the configuration files you find [here](https://github.com/xm1k3/cent/blob/main/.cent.yaml)
# Supported commands
| Command | Description |
| ------- | ---------------------- |
| check | Check if templates repo are still available |
| init | Cent init configuration file |
| summary | Print detailed summary of nuclei templates |
| update | Update your repository |
| validate | Validate templates, if the template is invalid it is deleted from the folder |
| version | Print cent version |
# Root flags
```
Flags:
--config string config file (default is .config/cent/.cent.yaml)
-C, --console Print console output
-p, --path string Root path to save the templates (default "cent-nuclei-templates")
-t, --threads int Number of threads to use when cloning repositories (default 10)
```
# Usage
```
cent -h
cent check -h
cent init -h
cent update -h
cent summary -h
cent validate -h
cent version
```
## Basic Usage
Clone and insert all the community templates into the `cent-nuclei-templates` folder
```
cent -p cent-nuclei-templates
```
Example output:
```
cent started
[CLONED] https://github.com/projectdiscovery/nuclei-templates
[CLONED] https://github.com/0xSojalSec/nuclei-templates-4
[CLONED] https://github.com/0xPugazh/my-nuclei-templates
[CLONED] https://github.com/0xSojalSec/my-nuclei-templates-1
[CLONED] https://github.com/0x727/ObserverWard
[CLONED] https://github.com/0xAwali/Blind-SSRF
[CLONED] https://github.com/0x727/ObserverWard_0x727
[CLONED] https://github.com/0xAwali/Virtual-Host
[CLONED] https://github.com/0xSojalSec/Nuclei-Templates-API-Linkfinder
...
...
...
cent finished, you can find all your nuclei-templates in cent-nuclei-templates
```
## Summary Command
The `summary` command provides detailed statistics about your nuclei templates collection:
### Basic Summary
```bash
# Display summary in table format
cent summary
# Display summary in JSON format
cent summary --json
```
### Advanced Summary Features
```bash
# Limit number of tags displayed (default: 25)
cent summary --limit 10
# Search for specific data in summary
cent summary --search cve
cent summary --search wordpress
cent summary --search critical
# Update summary data
cent summary update
# Update with custom path
cent summary update -p /path/to/templates
```
### Summary Output Example
```
=== NUCLEI TEMPLATES SUMMARY ===
+-------------------+-------+
| METRIC | COUNT |
+-------------------+-------+
| Total Templates | 3249 |
| CVE Templates | 3821 |
| Invalid Templates | 1 |
| Valid Templates | 3248 |
+-------------------+-------+
=== SEVERITY DISTRIBUTION ===
+----------+-------+
| SEVERITY | COUNT |
+----------+-------+
| CRITICAL | 582 |
| HIGH | 877 |
| MEDIUM | 877 |
| LOW | 63 |
| INFO | 744 |
+----------+-------+
=== TOP TAGS ===
+---------------+-------+
| TAG | COUNT |
+---------------+-------+
| cve | 1909 |
| xss | 569 |
| wordpress | 487 |
| lfi | 459 |
| wp-plugin | 450 |
+---------------+-------+
```
### JSON Output Structure
```json
{
"metrics": {
"total_templates": 3249,
"cve_templates": 3821,
"invalid_templates": 1,
"valid_templates": 3248
},
"severity_distribution": {
"CRITICAL": 582,
"HIGH": 877,
"MEDIUM": 877,
"LOW": 63,
"INFO": 744
},
"tags": {
"cve": 1909,
"xss": 569,
"wordpress": 487
},
"last_updated": "2024-01-15 14:30:25"
}
```
## Update Command
If you have updated the `cent.yaml` file by adding new folders
```yaml
exclude-dirs:
- ...
- dns
- ...
```
just do:
```
cent update -p cent-nuclei-templates -d
```
and `cent` will automatically delete all `dns` folder present in `cent-nuclei-templates` without cloning all the github repos.
Example output:
```
[D][-] Dir removed cent-nuclei-templates/dns
[D][-] Dir removed cent-nuclei-templates/dns/subdomain
```
Same thing with `exclude-files`
```
cent update -p cent-nuclei-templates -f
```
## Configuration Management
### Initialize Configuration
```bash
# Initialize with default configuration
cent init
# Initialize with custom URL
cent init --url https://example.com/config.yaml
# Overwrite existing configuration
cent init --overwrite
```
### Check Configuration Status
```bash
# Check if configuration file exists
cent init check
```
### Check Template Repositories
```bash
# Check if all template repositories are accessible
cent check
# Remove inaccessible repositories from config
cent check --remove
```
---
Once cent has been configured correctly you can perform a scan with Nuclei.
Example
```
nuclei -u https://example.com -t ./cent-nuclei-templates -tags cve
nuclei -l urls.txt -t ./cent-nuclei-templates -tags cve
```
See [here](https://nuclei.projectdiscovery.io/nuclei/get-started/#running-nuclei) for more documentation about Nuclei
# Config
You need to configure `cent` parameters in `.config/cent/.cent.yaml`
```yaml
# Directories to exclude
exclude-dirs:
- .git
# Files to exclude
exclude-files:
- README.md
- .gitignore
- .pre-commit-config.yaml
- LICENSE
# Add github urls
community-templates:
- https://github.com/projectdiscovery/nuclei-templates
...
...
```
## Credits
- [hakluke](https://twitter.com/hakluke)
- [Nuclei](https://twitter.com/pdnuclei)
- [Project Discovery](https://twitter.com/pdiscoveryio)
- [sec715](https://twitter.com/sec715)
- [geeknik](https://twitter.com/geeknik)
- [SYSTEM00 SECURITY](https://github.com/System00-Security)
- [clarkvoss](https://github.com/clarkvoss)
- [notnotnotveg](https://github.com/notnotnotveg)
- [Alra3ees - Emad Shanab](https://twitter.com/Alra3ees)
- [Nuclei-Templates-Collection](https://github.com/emadshanab/Nuclei-Templates-Collection)
# Disclaimer
Disclaimer: The developer of this tool is not responsible for how the community uses the open source templates collected within it. These templates have not been validated by Project Discovery and are provided as-is.
# License
Cent is distributed under Apache-2.0 License
