Path: blob/dev/integration_tests/flow/iterate-one-value-flow.yaml
2070 views
id: flow-iterate-one-value-flow12info:3name: Test Flow Iterate One Value Flow4author: pdteam5severity: info6description: |7If length of template.extracted variable is not know, i.e it could be an array of 1 or more values, then iterate function8should be used to iterate over values because nuclei by default converts array to string if it has only 1 value.910flow: |11http(1)12for(let value of iterate(template.extracted)){13set("value", value)14http(2)15}1617http:18- method: GET19path:20- "{{BaseURL}}"2122extractors:23- type: regex24name: extracted25internal: true26regex:27- "[ok]+"2829- method: GET30path:31- "{{BaseURL}}/{{value}}"3233matchers:34- type: word35words:36- "ok"3738