From adec6a907454cf4b33a8ec7bf88a3fdf0eded099 Mon Sep 17 00:00:00 2001 From: Daniel Lawson Date: Tue, 15 Oct 2019 07:35:20 -0500 Subject: [PATCH] Modified thresholds on autocalibrate filter to > 0 instead of > 1 (#80) --- pkg/filter/filter.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/filter/filter.go b/pkg/filter/filter.go index 44e9043..a2076a2 100644 --- a/pkg/filter/filter.go +++ b/pkg/filter/filter.go @@ -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)) }