Learn R Programming

virustotal (version 0.7.1)

scan_file: Submit a file for scanning

Description

Uploads a file to VirusTotal for malware analysis using the v3 API. Files larger than 32 MiB use a single-use upload URL; the maximum accepted size is 650 MiB (one MiB is \(1024^2\) bytes). The final upload to a single-use URL is not automatically retried. Retrieve the returned analysis ID with get_analysis.

Usage

scan_file(file_path, ...)

Value

A virustotal_file_scan object with analysis ID and links

Arguments

file_path

Required; Path to the file to be scanned

...

Additional arguments passed to virustotal_POST

References

https://docs.virustotal.com/reference/files-scan

See Also

set_key for setting the API key, file_report for retrieving scan results

Examples

Run this code
if (FALSE) {
# Set API key first
set_key('your_api_key_here')

# Scan a file
result <- scan_file(file_path = 'suspicious_file.exe')
print(result)
}

Run the code above in your browser using DataLab