Skip to content

Conversation

@tarunKoyalwar
Copy link
Member

@tarunKoyalwar tarunKoyalwar commented Jan 4, 2024

example template

id: basic-raw-example

info:
  name: Test RAW Template
  author: pdteam
  severity: info


http:
  - raw:
      - |
        GET / HTTP/1.1
        Host: {{Hostname}}

    extractors:
      - type: regex
        name: title
        group: 1
        regex:
          - '<title>(.*)<\/title>'
        internal: true

      - type: dsl
        dsl:
          - '"Title is " + title'

example run

$  ./nuclei -t a.yaml -u https://example.com 

                     __     _
   ____  __  _______/ /__  (_)
  / __ \/ / / / ___/ / _ \/ /
 / / / / /_/ / /__/ /  __/ /
/_/ /_/\__,_/\___/_/\___/_/   v3.1.4-dev

		projectdiscovery.io

[INF] Current nuclei version: v3.1.4-dev (development)
[INF] Current nuclei-templates version: v9.7.2 (latest)
[WRN] Scan results upload to cloud is disabled.
[INF] New templates added in latest release: 61
[INF] Templates loaded for current scan: 1
[WRN] Executing 1 unsigned templates. Use with caution.
[INF] Targets loaded for current scan: 1
[basic-raw-example] [http] [info] https://example.com/ [Title is Example Domain]

@tarunKoyalwar tarunKoyalwar self-assigned this Jan 4, 2024
@tarunKoyalwar tarunKoyalwar marked this pull request as ready for review January 4, 2024 21:55
@ehsandeep ehsandeep linked an issue Jan 4, 2024 that may be closed by this pull request
@ehsandeep ehsandeep merged commit d064801 into dev Jan 4, 2024
@ehsandeep ehsandeep deleted the issue-1222-serial-execution-extractors branch January 4, 2024 23:55
@ehsandeep ehsandeep mentioned this pull request Jan 4, 2024
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

make extractors based dynamic variable reusable as variable

3 participants