Don't write a finishing newline in silent mode (#677)
This commit is contained in:
parent
02e6a73724
commit
8453335088
@ -307,7 +307,9 @@ func (s *Stdoutput) Finalize() error {
|
|||||||
s.Error(err.Error())
|
s.Error(err.Error())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
fmt.Fprintf(os.Stderr, "\n")
|
if !s.config.Quiet {
|
||||||
|
fmt.Fprintf(os.Stderr, "\n")
|
||||||
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -384,7 +386,7 @@ func (s *Stdoutput) prepareInputsOneLine(res ffuf.Result) string {
|
|||||||
inputs := ""
|
inputs := ""
|
||||||
if len(s.fuzzkeywords) > 1 {
|
if len(s.fuzzkeywords) > 1 {
|
||||||
for _, k := range s.fuzzkeywords {
|
for _, k := range s.fuzzkeywords {
|
||||||
if ffuf.StrInSlice(k, s.config.CommandKeywords) {
|
if ffuf.StrInSlice(k, s.config.CommandKeywords) {
|
||||||
// If we're using external command for input, display the position instead of input
|
// 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))
|
inputs = fmt.Sprintf("%s%s : %s ", inputs, k, strconv.Itoa(res.Position))
|
||||||
} else {
|
} else {
|
||||||
@ -392,8 +394,8 @@ func (s *Stdoutput) prepareInputsOneLine(res ffuf.Result) string {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
for _, k := range s.fuzzkeywords {
|
for _, k := range s.fuzzkeywords {
|
||||||
if ffuf.StrInSlice(k, s.config.CommandKeywords) {
|
if ffuf.StrInSlice(k, s.config.CommandKeywords) {
|
||||||
// If we're using external command for input, display the position instead of input
|
// If we're using external command for input, display the position instead of input
|
||||||
inputs = strconv.Itoa(res.Position)
|
inputs = strconv.Itoa(res.Position)
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user