diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/printer.go | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/src/printer.go b/src/printer.go index d33360a..f02957b 100644 --- a/src/printer.go +++ b/src/printer.go @@ -37,6 +37,30 @@ func printResponses(channels channels) { } } + for _, linesToHide := range hide.HideLine { + if response.ResponseLines == linesToHide { + prefix = "" + postfix = "\033[K\r" + color = "red" + } + } + + for _, wordsToHide := range hide.HideWord { + if response.ResponseWords == wordsToHide { + prefix = "" + postfix = "\033[K\r" + color = "red" + } + } + + for _, charsToHide := range hide.HideChar { + if response.ResponseChars == charsToHide { + prefix = "" + postfix = "\033[K\r" + color = "red" + } + } + // color if color == "red" { statusCode = red(fmt.Sprintf("%d", response.StatusCode)) @@ -45,7 +69,7 @@ func printResponses(channels channels) { } // print the requests - fmt.Printf("%s%.7d: %s %s%s", prefix, i, statusCode, response.FuzzWord, postfix) + fmt.Printf("%s%.7d: %s | %7d L | %7d W | %7d Ch | %s%s", prefix, i, statusCode, response.ResponseLines, response.ResponseWords, response.ResponseChars, response.FuzzWord, postfix) i++ } |