Skip to content

Commit

Permalink
better host header check
Browse files Browse the repository at this point in the history
  • Loading branch information
firefart committed Nov 19, 2023
1 parent 2e94f5c commit 73f6226
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gobusterfuzz/gobusterfuzz.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ func (d *GobusterFuzz) ProcessWord(ctx context.Context, word string, progress *l
requestOptions.ModifiedHeaders = make([]libgobuster.HTTPHeader, len(d.options.Headers))
for i := range d.options.Headers {
// Host header can't be set via Headers, needs to be a separate field
if d.options.Headers[i].Name == "Host" {
if http.CanonicalHeaderKey(d.options.Headers[i].Name) == "Host" {
requestOptions.Host = strings.ReplaceAll(d.options.Headers[i].Value, FuzzKeyword, word)
continue
}
Expand Down

0 comments on commit 73f6226

Please sign in to comment.