raw type req will append BaseURL into the request && internal varible question #4053
-
Nuclei version:2.9.10 Current Behavior:my raw template will request URL appended by {{BaseURL}},like: http:
- raw:
- |
GET /attachment/index0.php HTTP/1.1
Host: {{Hostname}}
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36
Accept: */*
Accept-Encoding: gzip, deflates
Accept-Language: zh-CN,zh;q=0.9
Connection: close
stop-at-first-match: false
matchers-condition: or
matchers:
- type: regex
regex:
- "ASSASIN"` and command line:
Expected Behavior:request raw data,not url append {{BaseURL}} Anything else:btw,is the Extractor internal var only available to current block? http:
- raw:
- |
GET /attachment/index0.php HTTP/1.1
Host: {{Hostname}}
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36
Accept: */*
Accept-Encoding: gzip, deflates
Accept-Language: zh-CN,zh;q=0.9
Connection: close
stop-at-first-match: false
extractors:
- type: regex
part: body
name: test # var here wants to be used
regex:
- '\c{10}'
matchers:
- type: regex
regex:
- "ASSASIN"
- method: GET
path:
- "{{RootURL}}/{{test}}" # test var used here |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Yes, as of now that's the case, but we have added support to use anywhere in the template context that will be available to use with |
Beta Was this translation helpful? Give feedback.
-
thks for replying, i'm looking forward to nuclei v3 ,wish you have a good day! |
Beta Was this translation helpful? Give feedback.
@breaking153,
disable-path-automerge: true
to avoid appending path input from CLI input.Yes, as of now that's the case, but we have added support to use anywhere in the template context that will be available to use with
nuclei v3