trimstray / htrace.sh

My simple Swiss Army knife for http/https troubleshooting and profiling.
GNU General Public License v3.0
3.75k stars 233 forks source link

Color Output #64

Closed adblockanti closed 5 years ago

adblockanti commented 5 years ago

Sometimes it ist very useful to redirect the output to a file like sudo htrace.sh -u https://nmap.org -s -h | tee htrace.txt

The problem with this is the colored output. (It produces nonprintable chars) .... URI: ^[[4;1;33mhttps://^[[4;1;33mwww.badssl.com/^[[m

     - request-method: ^[[2;1;30mGET^[[m

Please make an option to disable color output like for grep --color=never

Thanks.

trimstray commented 5 years ago
export HTRACE_COLORS=off ; htrace.sh -u htrace.sh -u https://nmap.org -s -h