这是indexloc提供的服务,不要输入任何密码
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
- Fix csv output file format
- Fixed divide by 0 error when setting rate limit to 0 manually.
- Automatic brotli and deflate decompression
- Report if request times out when a time based matcher or filter is active

- v2.0.0
- New
Expand Down
22 changes: 22 additions & 0 deletions pkg/ffuf/job.go
Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,28 @@ func (j *Job) runTask(input map[string][]byte, position int, retried bool) {
} else {
j.runTask(input, position, true)
}
if os.IsTimeout(err) {
for name := range j.Config.MatcherManager.GetMatchers() {
if name == "time" {
inputmsg := ""
for k, v := range input {
inputmsg = inputmsg + fmt.Sprintf("%s : %s // ", k, v)
}
j.Output.Info("Timeout while 'time' matcher is active: " + inputmsg)
return
}
}
for name := range j.Config.MatcherManager.GetFilters() {
if name == "time" {
inputmsg := ""
for k, v := range input {
inputmsg = inputmsg + fmt.Sprintf("%s : %s // ", k, v)
}
j.Output.Info("Timeout while 'time' filter is active: " + inputmsg)
return
}
}
}
return
}
if j.SpuriousErrorCounter > 0 {
Expand Down