Skip to content

Commit 525d2ca

Browse files
fix unresolved interactsh-url for raw http templates (#5938)
1 parent 515dc26 commit 525d2ca

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

pkg/protocols/http/build_request.go

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -150,9 +150,7 @@ func (r *requestGenerator) Make(ctx context.Context, input *contextargs.Context,
150150
// skip creating template context if not available
151151
dynamicValues = generators.MergeMaps(dynamicValues, r.request.options.GetTemplateCtx(input.MetaInput).GetAll())
152152
}
153-
if r.request.SelfContained {
154-
return r.makeSelfContainedRequest(ctx, reqData, payloads, dynamicValues)
155-
}
153+
156154
isRawRequest := len(r.request.Raw) > 0
157155
// replace interactsh variables with actual interactsh urls
158156
if r.options.Interactsh != nil {
@@ -166,6 +164,10 @@ func (r *requestGenerator) Make(ctx context.Context, input *contextargs.Context,
166164
}
167165
}
168166

167+
if r.request.SelfContained {
168+
return r.makeSelfContainedRequest(ctx, reqData, payloads, dynamicValues)
169+
}
170+
169171
// Parse target url
170172
parsed, err := urlutil.ParseAbsoluteURL(input.MetaInput.Input, false)
171173
if err != nil {

0 commit comments

Comments
 (0)