Option to exclude results based on matcher names #2082
Labels
Priority: Low
This issue can probably be picked up by anyone looking to contribute to the project, as an entry fix
Status: Completed
Nothing further to be done with this issue. Awaiting to be closed.
Type: Enhancement
Most issues will probably ask for additions or changes.
Milestone
Describe the use case of this feature:
For the cases where excluding the template is not an option as the template may contain multiple results, it's not possible to exclude any desired matches in the results, to support this scenario, a new CLI flag needs to be introduced to filter results based on a given matcher or list of matcher names.
Please describe your feature request:
CLI flag:
-em, -exclude-matchers string[] template matchers to exclude in result (comma-separated, file)
Exclude matchers using CLI Flag:
-em http-missing-security-headers:cross-origin-resource-policy,tech-detect:google-font-api
Exclude matchers using file input:
-em exclude.matchers.txt
Exclude matchers using the config file:
Discussed in projectdiscovery/nuclei-templates#3808
Originally posted by carlin-q-scott March 2, 2022
I'd like to be able to use part of a template by excluding certain matchers.
For instance, I'm using misconfiguration/http-missing-security-headers.yaml, but I don't want to get results for the less important headers. The template has them all set at "info" severity, but they're not equally important. If we could set severity at the matcher level, then I could update the template to raise the severity for the more important security headers.
Alternatively, if I could exclude matchers by name, that would solve my issue and would save people from having to argue about matcher severity. I'd imagine my config.yml would look something like this:
The text was updated successfully, but these errors were encountered: