Learn R Programming

virustotal (version 0.2.2)

rescan_file: Rescan already submitted files

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

rescan_file(hash = NULL, ...)

Arguments

hash

Hash for the scan. String. Required.

Additional arguments passed to virustotal2_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://developers.virustotal.com/v2.0/reference

See Also

set_key for setting the API key

Examples

Run this code
# 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
# }

Run the code above in your browser using DataLab