Open ehsandeep opened 1 year ago
Example headless template:
id: headless-header-key
info:
name: headless header key
author: pdteam
severity: info
headless:
- steps:
- args:
url: "{{BaseURL}}"
action: navigate
- action: waitload
extractors:
- type: dsl
dsl:
- content_type
Expected result:
echo scanme.sh | ./nuclei -t test.yaml -headless -silent
[headless-header-key] [headless] [info] https://scanme.sh [text/plain; charset=utf-8]
Similar to http engine, we can expose header
key: value
as a variable to use with dsl matchers / extractors.Here is an example from existing http engine -
Originally posted by @ehsandeep in https://github.com/projectdiscovery/nuclei/pull/3794#pullrequestreview-1469468441