Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
projectdiscovery
GitHub Repository: projectdiscovery/nuclei
Path: blob/dev/integration_tests/protocols/http/raw-dynamic-extractor.yaml
2070 views
1
id: dynamic-extractor-raw-example
2
3
info:
4
name: Test Dynamic Extractor RAW Template
5
author: pdteam
6
severity: info
7
8
http:
9
- raw:
10
- |
11
POST / HTTP/1.1
12
Host: {{Hostname}}
13
Origin: {{BaseURL}}
14
Connection: close
15
Content-Type: application/x-www-form-urlencoded
16
Content-Length: 1
17
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/537.36 (KHTML, like Gecko)
18
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8
19
Accept-Language: en-US,en;q=0.9
20
21
testing=parameter
22
- |
23
GET /?username={{randkey}} HTTP/1.1
24
Host: {{Hostname}}
25
Origin: {{BaseURL}}
26
Connection: close
27
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/537.36 (KHTML, like Gecko)
28
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8
29
Accept-Language: en-US,en;q=0.9
30
extractors:
31
- type: regex
32
name: randkey
33
part: body
34
group: 1
35
internal: true
36
regex:
37
- "Token: '([A-Za-z0-9]+)'"
38
39
matchers:
40
- type: word
41
words:
42
- "Test is test-dynamic-extractor-raw matcher text"
43