这是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 CONTRIBUTORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
16 changes: 8 additions & 8 deletions pkg/output/stdout.go
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -382,22 +382,22 @@ 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) {
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
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])
}
}
}
Expand Down