The example shows a setting of "only run if method is POST" in pre-condition, but is there a way to call such a template with POST method?
'nuclei -target 'http://example.com/path' -t . /template.yaml'
I am aware that if I call template in the form "http://example.com/path", the diagnosis is performed based on a GET request to http://example.com/path.
So I don't think there is any method other than GET request when checking pre-condition, is there any other way to call it? I would like to know when such a pre-condition check would be beneficial.
https://docs.projectdiscovery.io/templates/protocols/http/fuzzing-examples#basic-host-header-injection:```
http:
# pre-condition to determine if the template should be executed
- pre-condition:
- type: dsl
dsl:- 'method == "POST"' # only run if method is POST
- 'contains(path,"reset")' # only run if path contains reset word
condition: and
- type: dsl