Skip to content
Discussion options

You must be logged in to vote

Nuclei has a few built-in mechanisms for complex logic without external scripts:

1. flow — JavaScript-based execution control
Controls which requests run and in what order, with full JS logic between them:

flow: |
  let r1 = http(1);
  if (r1) {
    http(2);
  }

2. Internal extractors — pass data between requests

extractors:
  - type: regex
    name: csrf_token
    internal: true
    regex:
      - 'name="_token" value="([^"]+)"'

Then reference with {{csrf_token}} in the next request body/header.

3. javascript protocol — full processing logic
For truly complex verification (custom crypto, multi-step chains, conditional parsing):

javascript:
  - code: |
      let resp = template['response'];

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ehsandeep
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants