The function returns a data.frame with a scan_id
and sha256
, sha1
, md5
hashes,
all of which can be used to retrieve the report using file_report
rescan_file(hash = NULL, ...)
hash | Hash for the scan. String. Required. |
---|---|
... | Additional arguments passed to |
data.frame with 12 columns:
scans, scan_id, sha1, resource, response_code, scan_date, permalink, verbose_msg, total, positives, sha256, md5
response_code
is 0 if the file is not in the database (hash can't be found).
https://www.virustotal.com/en/documentation/public-api/
set_key
for setting the API key
if (FALSE) { # Before calling the function, set the API key using set_key('api_key_here') rescan_file(hash='99017f6eebbac24f351415dd410d522d') rescan_file(hash='99017f6ee51415dd410d522d') # incorrect hash }