Nuclei grinds to a halt on HTTP templates with many paths as the internal valuesMap starts to grow beyond expectation #4705
-
Beta Was this translation helpful? Give feedback.
Answered by
tarunKoyalwar
Jan 30, 2024
Replies: 1 comment 2 replies
-
@Nirusu , you guessed it right . manually adding each request in a array is not expected way to write templates , because such style of writing is meant to be used when there is some sort or condition or data sharing between requests . a good way to write this is using id: example-fuzz
info:
name: placeholder
author: pdteam
severity: info
http:
- raw:
- |
{{method}} /{{to_lower(method)}}/{{numbers}} HTTP/1.1
Host: {{Hostname}}
Origin: {{BaseURL}}
Connection: close
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/537.36 (KHTML, like Gecko)
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8
Accept-Language: en-US,en;q=0.9
payloads:
method:
- "GET"
- "POST"
- "PUT"
- "DELETE"
- "PATCH"
numbers:
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
attack: clusterbomb
# threads: 50 # concurrency of these request while fuzzing
matchers:
- type: status
status:
- 502 also i would recommend to refer existing nuclei templates and use autocomplete or AI template writer feature at https://cloud.projectdiscovery.io/templates |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
tarunKoyalwar
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@Nirusu , you guessed it right . manually adding each request in a array is not expected way to write templates , because such style of writing is meant to be used when there is some sort or condition or data sharing between requests . a good way to write this is using
payloads
for example this would be written as