Thank you for the great tool, was very useful to extract data from raw protobuf captures without writing any code.
However, decode_raw is not very friendly with pipeline processing in bash: it always output data with terminal colors on, even if tool output is piped to another utility.
If it is possible, please add some "raw" flags, that suppress colorizing the output and data type hints - they are great for debugging, but complicate processing with tools like xxd -r -p (to convert hex to binary). For now it requires the following to get data for a bytes field:
$ decode_raw --full .7 < test.pb | cut -d ' ' -f 4 | sed -e 's/\x1b\[[0-9;]*m//g' | xxd -r -p > buffer.raw
It would be great to simplify that into
$ decode_raw --full --raw .7 < test.pb | xxd -r -p > buffer.raw
or even
$ decode_raw --full --raw .7 < test.pb > buffer.raw
However, I have no idea how --raw should work for several fields. Probably the tool can mimic jq -r
Thank you for the great tool, was very useful to extract data from raw protobuf captures without writing any code.
However, decode_raw is not very friendly with pipeline processing in bash: it always output data with terminal colors on, even if tool output is piped to another utility.
If it is possible, please add some "raw" flags, that suppress colorizing the output and data type hints - they are great for debugging, but complicate processing with tools like
xxd -r -p(to convert hex to binary). For now it requires the following to get data for abytesfield:It would be great to simplify that into
or even
However, I have no idea how
--rawshould work for several fields. Probably the tool can mimicjq -r