
कम्युनिटी संस्करण nuclei टेम्पलेट्स, एक सरल उपकरण जो आपको समुदाय द्वारा पेश किए गए सभी nuclei टेम्पलेट्स को एक ही स्थान पर व्यवस्थित करने की अनुमति देता है।

सामुदायिक संस्करण nuclei टेम्पलेट्स, एक सरल टूल जो आपको समुदाय द्वारा प्रदान किए गए सभी Nuclei टेम्पलेट्स को एक ही स्थान पर व्यवस्थित करने की सुविधा देता है।
go install -v github.com/xm1k3/cent/v2@latest
इंस्टॉलेशन के बाद cent init चलाएँ ताकि cent को उन कॉन्फ़िगरेशन फ़ाइलों के साथ इनिशियलाइज़ किया जा सके जो आपको यहाँ मिलेंगी।
Flags:
--config string config file (default is .config/cent/.cent.yaml)
-r, --by-repo Group templates by repository (use with -k)
-C, --console Print console output
-k, --keep-folders Keep templates organized in folders by category
-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)
-T, --timeout int Timeout in minutes for each git clone (default 2)
cent -h
cent check -h
cent init -h
cent update -h
cent summary -h
cent validate -h
cent version
सभी सामुदायिक टेम्पलेट्स को क्लोन करके cent-nuclei-templates फ़ोल्डर में डालें
cent -p cent-nuclei-templates
उदाहरण आउटपुट:
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
प्रत्येक रिपॉजिटरी की आंतरिक फ़ोल्डर संरचना को बनाए रखने के लिए -k फ़्लैग का उपयोग करें:
cent -p cent-nuclei-templates -k
इससे इस प्रकार की फ़ोल्डर संरचना बनेगी:
cent-nuclei-templates/
cves/
CVE-2021-1234.yaml
vulnerabilities/
template.yaml
others/
uncategorized-template.yaml
जिन टेम्पलेट्स के स्रोत रिपॉजिटरी में कोई सबफ़ोल्डर नहीं है, उन्हें others/ में रखा जाता है।
टेम्पलेट्स को उनके स्रोत रिपॉजिटरी द्वारा समूहित करने के लिए भी -k -r का उपयोग करें:
cent -p cent-nuclei-templates -k -r
cent-nuclei-templates/
projectdiscovery/nuclei-templates/
cves/
CVE-2021-1234.yaml
vulnerabilities/
template.yaml
user/repo-name/
others/
custom-template.yaml
summary कमांड आपके nuclei टेम्पलेट्स संग्रह के बारे में विस्तृत आँकड़े प्रदान करता है:
# Display summary in table format
cent summary
# Display summary in JSON format
cent summary --json
# 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
=== 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 |
+---------------+-------+
{
"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"
}
यदि आपने नए फ़ोल्डर जोड़कर cent.yaml फ़ाइल को अपडेट किया है
exclude-dirs:
- ...
- dns
- ...
तो बस यह करें:
cent update -p cent-nuclei-templates -d
और cent सभी github रिपॉजिटरी को क्लोन किए बिना cent-nuclei-templates में मौजूद सभी dns फ़ोल्डरों को स्वचालित रूप से हटा देगा।
उदाहरण आउटपुट:
[D][-] Dir removed cent-nuclei-templates/dns
[D][-] Dir removed cent-nuclei-templates/dns/subdomain
exclude-files के साथ भी ऐसा ही
cent update -p cent-nuclei-templates -f
# 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 if configuration file exists
cent init check
# Check if all template repositories are accessible
cent check
# Remove inaccessible repositories from config
cent check --remove
एक बार cent को सही ढंग से कॉन्फ़िगर कर लेने पर आप Nuclei के साथ स्कैन कर सकते हैं।
उदाहरण
nuclei -u https://example.com -t ./cent-nuclei-templates -tags cve
nuclei -l urls.txt -t ./cent-nuclei-templates -tags cve
Nuclei के बारे में अधिक दस्तावेज़ के लिए यहाँ देखें
आपको .config/cent/.cent.yaml में cent पैरामीटर कॉन्फ़िगर करने होंगे
# Directories to exclude
exclude-dirs:
- .git
# Files to exclude
exclude-files:
- README.md
- .gitignore
- .pre-commit-config.yaml
- LICENSE
# Add github urls (simple format)
community-templates:
- https://github.com/projectdiscovery/nuclei-templates
- https://github.com/other/repo
# Extended format: pin a repo to a specific commit
- url: https://github.com/user/repo
commit: abc123f
# Extended format: per-repo exclude
- url: https://github.com/user/repo2
exclude:
- "workflows/"
- "fuzzing/"
दोनों प्रारूपों को एक ही कॉन्फ़िगरेशन फ़ाइल में मिलाया जा सकता है। जब commit निर्दिष्ट किया जाता है, तो cent शैलो क्लोन का उपयोग करने के बजाय पूरी रिपॉजिटरी को क्लोन करेगा और उस विशेष commit को चेकआउट करेगा। प्रति-रिपॉजिटरी exclude उस विशिष्ट रिपॉजिटरी से मेल खाने वाले पथों को फ़िल्टर करता है।
अस्वीकरण: इस टूल का डेवलपर इस बात के लिए ज़िम्मेदार नहीं है कि समुदाय इसके भीतर एकत्रित ओपन सोर्स टेम्पलेट्स का उपयोग कैसे करता है। इन टेम्पलेट्स को Project Discovery द्वारा मान्य नहीं किया गया है और ये जैसे-के-तैसे (as-is) प्रदान किए जाते हैं।
Cent को Apache-2.0 लाइसेंस के अंतर्गत वितरित किया जाता है
| Command | Description |
|---|
| check | जाँचें कि टेम्पलेट रिपॉजिटरी अभी भी उपलब्ध हैं या नहीं |
| init | Cent init कॉन्फ़िगरेशन फ़ाइल |
| summary | Nuclei टेम्पलेट्स का विस्तृत सारांश प्रिंट करें |
| update | अपनी रिपॉजिटरी अपडेट करें |
| validate | टेम्पलेट्स को मान्य करें, यदि टेम्पलेट अमान्य है तो उसे फ़ोल्डर से हटा दिया जाता है |
| version | Cent संस्करण प्रिंट करें |