mirror of
https://github.com/ffuf/ffuf
synced 2024-11-10 06:04:17 +00:00
Don't write a finishing newline in silent mode (#677)
This commit is contained in:
parent
02e6a73724
commit
8453335088
1 changed files with 6 additions and 4 deletions
|
@ -307,7 +307,9 @@ func (s *Stdoutput) Finalize() error {
|
|||
s.Error(err.Error())
|
||||
}
|
||||
}
|
||||
fmt.Fprintf(os.Stderr, "\n")
|
||||
if !s.config.Quiet {
|
||||
fmt.Fprintf(os.Stderr, "\n")
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
|
@ -384,7 +386,7 @@ func (s *Stdoutput) prepareInputsOneLine(res ffuf.Result) string {
|
|||
inputs := ""
|
||||
if len(s.fuzzkeywords) > 1 {
|
||||
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
|
||||
inputs = fmt.Sprintf("%s%s : %s ", inputs, k, strconv.Itoa(res.Position))
|
||||
} else {
|
||||
|
@ -392,8 +394,8 @@ func (s *Stdoutput) prepareInputsOneLine(res ffuf.Result) string {
|
|||
}
|
||||
}
|
||||
} else {
|
||||
for _, k := range s.fuzzkeywords {
|
||||
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 {
|
||||
|
|
Loading…
Reference in a new issue