nuclei icon indicating copy to clipboard operation
nuclei copied to clipboard

Advanced template filtering

Open Mzack9999 opened this issue 3 years ago • 2 comments
trafficstars

Please describe your feature request:

Allow advanced template filtering for execution with values from id / info section

Describe the use case of this feature:

More control over template execution

Proposed solutions:

New CLI flag:

   -tc, -template-condition          templates to run based on dsl filer

Examples

nuclei -tc "author=='pdteam' && ('wordpress','xss') in tags"
nuclei -tc "severity=='high' && metadata.verified"
id=='tect-detect' || ('wordpress', 'xss') in tags
'pdteam' in author
tag=='wordpress' || 'xss' in tags && !('excluded' in tags)
severity=='high'

Mzack9999 avatar Jul 28 '22 09:07 Mzack9999

@Mzack9999 why id='tech-detect' with a single =, and the rest is with ==?

forgedhallpass avatar Jul 29 '22 12:07 forgedhallpass

@Mzack9999 why id='tech-detect' with a single =, and the rest is with ==?

Fixed

Mzack9999 avatar Jul 29 '22 13:07 Mzack9999