VirusTotal/vt-cli

Demo uploading a file and reading the report?

Closed this issue · 3 comments

Hi, My usecase is just submitting a file to vt for checking and then looking over the report. Can you demo how to do that (sorry!).

Many thanks,

The vt scan file command will return the file name together with an analysis ID that you can use with the vt analysis command for retrieving the analysis details. For example:

$ vt scan file <yourfile>
<yourfile> ZDZiOTcxY2JhNDE0MWU5ZWRjN2JjNGQ2NTdhN2VjODU6MTU3MDE3Mjg1NQ==
$ vt analysis ZDZiOTcxY2JhNDE0MWU5ZWRjN2JjNGQ2NTdhN2VjODU6MTU3MDE3Mjg1NQ==
- _id: "ZDZiOTcxY2JhNDE0MWU5ZWRjN2JjNGQ2NTdhN2VjODU6MTU3MDE3Mjg1NQ=="
  _type: "analysis"
  date: 1570172855  # 2019-10-04 09:07:35 +0200 CEST
  stats:
    failure: 0
    harmless: 0
    malicious: 0
    suspicious: 0
    timeout: 0
    type-unsupported: 0
    undetected: 0
  status: "queued"

You must keep asking for the analysis until the status changes to "completed", which usually takes a minute or so.

As I'm writing this I'm thinking that a less cumbersome method would be nice, so I'm opening this other issue #15.

Thanks dude, just what I needed :-)

PacoH commented

Me too. Why isn't this on the project page?