From 22797c0934e4e52b7d4c4c44c721134abb267e8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20GASCOU=20=28Podalirius=29?= Date: Fri, 3 Mar 2023 19:31:32 +0100 Subject: [PATCH 1/4] Fixed incorrect len() in pkg/output/stdout.go::PrintResult() --- pkg/output/stdout.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/output/stdout.go b/pkg/output/stdout.go index 0b11c0a8..9333ce29 100644 --- a/pkg/output/stdout.go +++ b/pkg/output/stdout.go @@ -372,7 +372,7 @@ func (s *Stdoutput) PrintResult(res ffuf.Result) { s.resultJson(res) case s.config.Quiet: s.resultQuiet(res) - case len(res.Input) > 1 || s.config.Verbose || len(s.config.OutputDirectory) > 0 || len(res.ScraperData) > 0: + case len(s.fuzzkeywords) > 1 || s.config.Verbose || len(s.config.OutputDirectory) > 0 || len(res.ScraperData) > 0: // Print a multi-line result (when using multiple input keywords and wordlists) s.resultMultiline(res) default: From 5cf90556437f2b2d695816533c8f640c9986dc07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20GASCOU=20=28Podalirius=29?= Date: Fri, 3 Mar 2023 19:32:24 +0100 Subject: [PATCH 2/4] Fixed incorrect iteration on res.Input in pkg/output/stdout.go::prepareInputsOneLine(), Fixes #645 --- pkg/output/stdout.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pkg/output/stdout.go b/pkg/output/stdout.go index 9333ce29..1906ba85 100644 --- a/pkg/output/stdout.go +++ b/pkg/output/stdout.go @@ -383,21 +383,21 @@ func (s *Stdoutput) PrintResult(res ffuf.Result) { func (s *Stdoutput) prepareInputsOneLine(res ffuf.Result) string { inputs := "" if len(res.Input) > 1 { - for k, v := range res.Input { - if ffuf.StrInSlice(k, s.config.CommandKeywords) { + for _, k := range s.fuzzkeywords { + if ffuf.StrInSlice(k, s.config.CommandKeywords) { // If we're using external command for input, display the position instead of input inputs = fmt.Sprintf("%s%s : %s ", inputs, k, strconv.Itoa(res.Position)) } else { - inputs = fmt.Sprintf("%s%s : %s ", inputs, k, v) + inputs = fmt.Sprintf("%s%s : %s ", inputs, k, res.Input[k]) } } } else { - for k, v := range res.Input { - if ffuf.StrInSlice(k, s.config.CommandKeywords) { + for _, k := range s.fuzzkeywords { + if ffuf.StrInSlice(k, s.config.CommandKeywords) { // If we're using external command for input, display the position instead of input inputs = strconv.Itoa(res.Position) } else { - inputs = string(v) + inputs = string(res.Input[k]) } } } From 46e7d7cdd138ea762637b7128e654c421afd805a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20GASCOU=20=28Podalirius=29?= Date: Fri, 3 Mar 2023 19:35:44 +0100 Subject: [PATCH 3/4] Update CONTRIBUTORS.md --- CONTRIBUTORS.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md index 28c73236..1ac6520b 100644 --- a/CONTRIBUTORS.md +++ b/CONTRIBUTORS.md @@ -37,6 +37,7 @@ * [noraj](https://pwn.by/noraj) * [oh6hay](https://github.com/oh6hay) * [penguinxoxo](https://github.com/penguinxoxo) +* [p0dalirius](https://github.com/p0dalirius) * [putsi](https://github.com/putsi) * [SakiiR](https://github.com/SakiiR) * [seblw](https://github.com/seblw) From bb9a9d9ca910cc7076f4255af3703dddffb0b51b Mon Sep 17 00:00:00 2001 From: Joona Hoikkala <5235109+joohoi@users.noreply.github.com> Date: Fri, 21 Apr 2023 17:19:26 +0300 Subject: [PATCH 4/4] Update pkg/output/stdout.go --- pkg/output/stdout.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/output/stdout.go b/pkg/output/stdout.go index 1906ba85..8b9f40d9 100644 --- a/pkg/output/stdout.go +++ b/pkg/output/stdout.go @@ -382,7 +382,7 @@ func (s *Stdoutput) PrintResult(res ffuf.Result) { func (s *Stdoutput) prepareInputsOneLine(res ffuf.Result) string { inputs := "" - if len(res.Input) > 1 { + if len(s.fuzzkeywords) > 1 { for _, k := range s.fuzzkeywords { if ffuf.StrInSlice(k, s.config.CommandKeywords) { // If we're using external command for input, display the position instead of input