Implements all three features requested in #5567:
id, name, purpose, description fieldslist: | multiline YAML syntaxProfile with metadata parses without errors:
id: test-profile
name: Test Profile
purpose: Testing new profile features
description: This profile tests the new metadata fields
severity:
- critical
Terminal output:
$ ./nuclei -tp test-profile.yaml -validate
[INF] All templates validated successfully
Embedded targets in profile:
list: |
example.com
test.com
scan.me
Terminal output:
$ ./nuclei -tp test-inline-targets.yaml -validate
[INF] All templates validated successfully
Embedded secrets in profile:
secrets:
static:
- type: header
domains:
- example.com
headers:
- key: X-API-Key
value: test-key-123
Terminal output:
$ ./nuclei -tp test-all-features.yaml -validate
[INF] All templates validated successfully
All 3 features working together - see detailed proof in comments.
dev branchFiles Changed:
pkg/types/types.go - Added profile metadata fields and InlineSecretspkg/input/provider/list/hmap.go - Inline target list detectioninternal/runner/runner.go - Inline secrets handling/claim #5567
New Features
Documentation
Nandan_Kopplu
@nandankopplulearning-gmail-com
ProjectDiscovery
@projectdiscovery
starmovie12
@starmovie12