Is your feature request related to a problem? Please describe.
Within #223, they state:
I also noticed that nuclei connects to the host that is included in the RAW HTTP request, instead of connection to the one supplied by stdin.
I desire this behavior as I am having stdin (or file) be a list of strings to test against a set of custom templates. The templates have a hard-coded destination URLs, but they manipulate the strings provided by stdin.
If my template uses a RAW request, the host header is set by the template but the connection goes to the one provided by stdin.
If my template uses a non-RAW request, (i.e., a - method: POST with path: - "...") then the header is set by the template and the connection goes to the one provided by the template (the desired behavior, only I lose my ability to perform needed helper functions).
Describe the solution you'd like
Is there a way to have the template specify the connection destination and override the input in stdin (or -l)?
Is your feature request related to a problem? Please describe.
Within #223, they state:
I desire this behavior as I am having stdin (or file) be a list of strings to test against a set of custom templates. The templates have a hard-coded destination URLs, but they manipulate the strings provided by stdin.
If my template uses a RAW request, the
hostheader is set by the template but the connection goes to the one provided by stdin.If my template uses a non-RAW request, (i.e., a
- method: POSTwithpath: - "...") then the header is set by the template and the connection goes to the one provided by the template (the desired behavior, only I lose my ability to perform needed helper functions).Describe the solution you'd like
Is there a way to have the template specify the connection destination and override the input in stdin (or
-l)?