Closed dozernz closed 5 months ago
the control characters are from the progress bar. If you use the —no-progress flag this should remove them
I still see them being output even with the --no-progress
flag, in both the dev and master branches.
# ./gobuster dns --no-progress --quiet -w /tmp/wl --do google.com -i | xxd
2024/01/29 21:40:50 maxprocs: Leaving GOMAXPROCS=2: CPU quota undefined
00000000: 0d1b 5b32 4b73 6974 6573 2e67 6f6f 676c ..[2Ksites.googl
00000010: 652e 636f 6d20 4950 733a 2032 3630 373a e.com IPs: 2607:
thanks this is now fixed on the dev branch when used with --no-progress
Great, thanks!
Gobuster prints a terminal escape sequence
"\r\x1b[2K"
at the start of each output finding to clear the terminal line, even when there is no TTY. The escape codes can cause trouble when piped to some CLI tools.This PR prevents the escape code from being printed when the 'no-color' flag is set. Here's how the output differs: