mirror of
https://github.com/projectdiscovery/nuclei.git
synced 2026-02-03 17:23:09 +08:00
add context vars in code and multi (#5051)
make the extracted variables available in subsequence templates when executing in a workflow fix projectdiscovery/nuclei#4797
This commit is contained in:
@@ -160,6 +160,8 @@ func (request *Request) ExecuteWithResults(input *contextargs.Context, dynamicVa
|
||||
if request.options.HasTemplateCtx(input.MetaInput) {
|
||||
allvars = generators.MergeMaps(allvars, request.options.GetTemplateCtx(input.MetaInput).GetAll())
|
||||
}
|
||||
// add dynamic and previous variables
|
||||
allvars = generators.MergeMaps(allvars, dynamicValues, previous)
|
||||
// optionvars are vars passed from CLI or env variables
|
||||
optionVars := generators.BuildPayloadFromOptions(request.options.Options)
|
||||
variablesMap := request.options.Variables.Evaluate(allvars)
|
||||
|
||||
Reference in New Issue
Block a user