VirusTotal/vt-cli

Output Options (Feature Request)

Closed this issue · 8 comments

For post processing or feeding into other tools, it would be very useful to be able to convert output into JSON (and potentially CSV).

I'll second that feature request, so to process the output with jq for example!

Me too! At least, add an option for minimal output (disable progress etc.) for better output handling:
$ vt scan file file.zip > output.txt
gives output:
file.zip uploading... 30.8%.[0K .[1Ffile.zip scanning....[0K .[1Ffile.zip scanning....[0K .[1Ffile.zip scanning....[0K .[1Ffile.zip scanning....[0K .[1Ffile.zip ZZZ---zY2ZjMzE3NGVjNDE6MTYwODU1NTMwMw==.[0K

Regarding YAML to JSON processing, the current vt-cli output is perfectly handled by yq (may be not interactive progress through).

Strongly suggest output to JSON. YAML has lots of problems. Total blocker for automation. yq tool is not working neither.
One example of the VT output using single colon to indicate empty key, which cannot be parsed. I have to manually delete it using sed tool.
Other parserError doesn't make sense to me.

For post processing or feeding into other tools, it would be very useful to be able to convert output into JSON (and potentially CSV).

I'll second that feature request, so to process the output with jq for example!

I'll third that feature request for json and CSV format support..
That would give us many more opportunites to munge, filter, parse sort ...,wait...

Please and thank you so much!

Please add the ability to choose the output type you wish to receive. Having both a positional argument --output <type> and a config option for this would be ideal.

Added support for --format json and --format csv in #69

Added support for --format json and --format csv in #69

Much obliged!!! 🤘☺️🫶