mirror of
https://github.com/ffuf/ffuf
synced 2024-12-03 00:29:15 +00:00
Modified thresholds on autocalibrate filter to > 0 instead of > 1 (#80)
This commit is contained in:
parent
081e40f97e
commit
adec6a9074
1 changed files with 2 additions and 2 deletions
|
@ -62,11 +62,11 @@ func calibrateFilters(j *ffuf.Job, responses []ffuf.Response) {
|
|||
sizeCalib := make([]string, 0)
|
||||
wordCalib := make([]string, 0)
|
||||
for _, r := range responses {
|
||||
if r.ContentLength > 1 {
|
||||
if r.ContentLength > 0 {
|
||||
// Only add if we have an actual size of responses
|
||||
sizeCalib = append(sizeCalib, strconv.FormatInt(r.ContentLength, 10))
|
||||
}
|
||||
if r.ContentWords > 1 {
|
||||
if r.ContentWords > 0 {
|
||||
// Only add if we have an actual word length of response
|
||||
wordCalib = append(wordCalib, strconv.FormatInt(r.ContentWords, 10))
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue