mirror of
https://github.com/projectdiscovery/nuclei.git
synced 2025-12-17 18:05:27 +00:00
fix unresolved interactsh-url for raw http templates (#5938)
This commit is contained in:
parent
515dc26634
commit
525d2caf66
@ -150,9 +150,7 @@ func (r *requestGenerator) Make(ctx context.Context, input *contextargs.Context,
|
|||||||
// skip creating template context if not available
|
// skip creating template context if not available
|
||||||
dynamicValues = generators.MergeMaps(dynamicValues, r.request.options.GetTemplateCtx(input.MetaInput).GetAll())
|
dynamicValues = generators.MergeMaps(dynamicValues, r.request.options.GetTemplateCtx(input.MetaInput).GetAll())
|
||||||
}
|
}
|
||||||
if r.request.SelfContained {
|
|
||||||
return r.makeSelfContainedRequest(ctx, reqData, payloads, dynamicValues)
|
|
||||||
}
|
|
||||||
isRawRequest := len(r.request.Raw) > 0
|
isRawRequest := len(r.request.Raw) > 0
|
||||||
// replace interactsh variables with actual interactsh urls
|
// replace interactsh variables with actual interactsh urls
|
||||||
if r.options.Interactsh != nil {
|
if r.options.Interactsh != nil {
|
||||||
@ -166,6 +164,10 @@ func (r *requestGenerator) Make(ctx context.Context, input *contextargs.Context,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if r.request.SelfContained {
|
||||||
|
return r.makeSelfContainedRequest(ctx, reqData, payloads, dynamicValues)
|
||||||
|
}
|
||||||
|
|
||||||
// Parse target url
|
// Parse target url
|
||||||
parsed, err := urlutil.ParseAbsoluteURL(input.MetaInput.Input, false)
|
parsed, err := urlutil.ParseAbsoluteURL(input.MetaInput.Input, false)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user