rescan_file: Rescan already submitted files

Description Usage Arguments Value References See Also Examples

View source: R/rescan_file.R

Description

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

Usage

1
rescan_file(hash = NULL, ...)

Arguments

hash

Hash for the scan. String. Required.

...

Additional arguments passed to virustotal_POST.

Value

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).

References

https://www.virustotal.com/en/documentation/public-api/

See Also

set_key for setting the API key

Examples

1
2
3
4
5
6
7
8
## Not run: 

# Before calling the function, set the API key using set_key('api_key_here')

rescan_file(hash='99017f6eebbac24f351415dd410d522d')
rescan_file(hash='99017f6ee51415dd410d522d') # incorrect hash

## End(Not run)

themains/virustotal documentation built on April 11, 2018, 3:22 a.m.