nuclei icon indicating copy to clipboard operation
nuclei copied to clipboard

Conditional named matchers in workflows

Open capiton0 opened this issue 3 years ago • 3 comments
trafficstars

I have written multiple fingerprint templates I want to execute a vulnerability scan when I execute a workflow template that satisfies any one of the features of this set of fingerprints. But as it stands, I have to write multiple fingerprints side by side, which generates a lot of extra requests

Current template situation

id: finger-scan

info:
  name: finger-scan
  author: capiton

workflows:
  - template: technologies/tech-detect.yaml
    matchers:
      - name: spring-boot
        subtemplates:
          - tags: springboot
          - tags: spring

      - name: spring
        subtemplates:
          - tags: springboot
          - tags: spring
          
      - name: spring-framework
        subtemplates:
          - tags: spring

What I want to achieve

workflows:
  - template: technologies/tech-detect.yaml
    matchers:
      - names:
          - spring-boot
          - spring
          - spring-framework
        condition: or
        subtemplates:
          - tags: springboot
          - tags: spring

capiton0 avatar Aug 30 '22 16:08 capiton0

@capiton0, this is indeed useful, thanks for creating this feature request.

ehsandeep avatar Aug 31 '22 17:08 ehsandeep

@capiton0, thanks again, this is now supported into dev version, here is an example run: https://github.com/projectdiscovery/nuclei/pull/2594#pullrequestreview-1112087485

ehsandeep avatar Sep 19 '22 11:09 ehsandeep

Your team is great developers!

capiton0 avatar Sep 19 '22 12:09 capiton0