mirror of
https://github.com/ffuf/ffuf
synced 2024-11-10 06:04:17 +00:00
Change banner logging to stderr (#282)
* Change banner logging to stderr * Edit CHANGELOG and CONTRIBUTORS * fix: add to contributors according to sort order
This commit is contained in:
parent
dc24ad2639
commit
79fe3c0c91
3 changed files with 5 additions and 3 deletions
|
@ -2,6 +2,7 @@
|
|||
- master
|
||||
- New
|
||||
- New CLI flag `-rate` to set maximum rate of requests per second. The adjustment is dynamic.
|
||||
- Change banner logging to stderr instead of stdout.
|
||||
|
||||
- Changed
|
||||
- Pre-flight errors are now displayed also after the usage text to prevent the need to scroll through backlog.
|
||||
|
|
|
@ -16,6 +16,7 @@
|
|||
* [jimen0](https://github.com/jimen0)
|
||||
* [joohoi](https://github.com/joohoi)
|
||||
* [jvesiluoma](https://github.com/jvesiluoma)
|
||||
* [Kiblyn11](https://github.com/Kiblyn11)
|
||||
* [lc](https://github.com/lc)
|
||||
* [nnwakelam](https://twitter.com/nnwakelam)
|
||||
* [oh6hay](https://github.com/oh6hay)
|
||||
|
|
|
@ -51,7 +51,7 @@ func NewStdoutput(conf *ffuf.Config) *Stdoutput {
|
|||
}
|
||||
|
||||
func (s *Stdoutput) Banner() error {
|
||||
fmt.Printf("%s\n v%s\n%s\n\n", BANNER_HEADER, ffuf.VERSION, BANNER_SEP)
|
||||
fmt.Fprintf(os.Stderr ,"%s\n v%s\n%s\n\n", BANNER_HEADER, ffuf.VERSION, BANNER_SEP)
|
||||
printOption([]byte("Method"), []byte(s.config.Method))
|
||||
printOption([]byte("URL"), []byte(s.config.Url))
|
||||
|
||||
|
@ -142,7 +142,7 @@ func (s *Stdoutput) Banner() error {
|
|||
for _, f := range s.config.Filters {
|
||||
printOption([]byte("Filter"), []byte(f.Repr()))
|
||||
}
|
||||
fmt.Printf("%s\n\n", BANNER_SEP)
|
||||
fmt.Fprintf(os.Stderr, "%s\n\n", BANNER_SEP)
|
||||
return nil
|
||||
}
|
||||
|
||||
|
@ -430,7 +430,7 @@ func (s *Stdoutput) colorize(input string, status int64) string {
|
|||
}
|
||||
|
||||
func printOption(name []byte, value []byte) {
|
||||
fmt.Printf(" :: %-16s : %s\n", name, value)
|
||||
fmt.Fprintf(os.Stderr, " :: %-16s : %s\n", name, value)
|
||||
}
|
||||
|
||||
func inSlice(key string, slice []string) bool {
|
||||
|
|
Loading…
Reference in a new issue