Skip to content

When using conditional workflows, only subtemplate shows in output #2563

@tryeng

Description

@tryeng

Workflow:

id: test

info:
  name: test workflow
  author: t
  description: Simple workflow running templates

workflows:
  - template: mydevice.yaml 
    subtemplates:
        - template: mydevice-default-password-check.yaml 

Output:

$ ./nuclei -w nuclei-templates/workflows/test.yaml -l input.txt

                     __     _
   ____  __  _______/ /__  (_)
  / __ \/ / / / ___/ / _ \/ /
 / / / / /_/ / /__/ /  __/ /
/_/ /_/\__,_/\___/_/\___/_/   2.7.7

		projectdiscovery.io

[WRN] Use with caution. You are responsible for your actions.
[WRN] Developers assume no liability and are not responsible for any misuse or damage.
[INF] Using Nuclei Engine 2.7.7 (latest)
[INF] Using Nuclei Templates 9.1.8 (latest)
[INF] Workflows loaded for scan: 1
[2022-09-05 15:50:24] [mydevice-default-password-check] [http] [info] http://localhost:10001/

I would expect this to also show matches on the mydevice template. Currently this can be done by running mydevice twice, but that will take twice the number of requests and more cluttered workflow files.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: BugInconsistencies or issues which will cause an issue or problem for users or implementors.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions