I'm not able to use payloads without raw request #2469
Replies: 5 comments
-
@Vishnuraghav89 payloads need to be defined under request block and not outside of it, so the valid example for the above will be:- requests:
- method: GET
path:
- "{{BaseURL}}/{{path}}"
payloads:
path: helpers/payloads/command-injection.txt
matchers:
- type: word
words:
- "anything" |
Beta Was this translation helpful? Give feedback.
-
Hi Sandeep and team, I tried below template as well but no luck. requests:
- method: GET
path:
- "{{BaseURL}}/{{test}}/"
payloads:
test: helpers/payloads/command-injection.txt
attack: sniper
matchers-condition: and
matchers:
- type: word
words:
- "Anything"
- type: status
status:
- 200 when used this template with verbose mode request was sending like below not taking payloads from .txt file.
|
Beta Was this translation helpful? Give feedback.
-
I see @Vishnuraghav89, that's because the support of it currently added into development version, details here projectdiscovery/nuclei#554, you can either use dev version of nuclei or wait for next nuclei release or use the RAW format. |
Beta Was this translation helpful? Give feedback.
-
Hi Sandeep, Thanks for your quick and kind support. Thanks 😊 |
Beta Was this translation helpful? Give feedback.
-
Using the development version is not advisable as it's WIP code and you might get few other things not broken, better to stick with RAW format till next version of nuclei is out. |
Beta Was this translation helpful? Give feedback.
-
Hi Sandeep and team,
Is there any way to use payloads without http raw request?
Beta Was this translation helpful? Give feedback.
All reactions