mirror of
https://github.com/ffuf/ffuf
synced 2025-03-02 13:57:11 +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)
|
sizeCalib := make([]string, 0)
|
||||||
wordCalib := make([]string, 0)
|
wordCalib := make([]string, 0)
|
||||||
for _, r := range responses {
|
for _, r := range responses {
|
||||||
if r.ContentLength > 1 {
|
if r.ContentLength > 0 {
|
||||||
// Only add if we have an actual size of responses
|
// Only add if we have an actual size of responses
|
||||||
sizeCalib = append(sizeCalib, strconv.FormatInt(r.ContentLength, 10))
|
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
|
// Only add if we have an actual word length of response
|
||||||
wordCalib = append(wordCalib, strconv.FormatInt(r.ContentWords, 10))
|
wordCalib = append(wordCalib, strconv.FormatInt(r.ContentWords, 10))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue