vtpy can upload single files to virustotal.com for virus analysis. Instead of the virustotal api it uses a headless chrome browser with selenium. This allows it to upload files without a file size limit.
vtpy is not published on PyPI, which means you have to download or clone the repository. Additionally, vtpy requires chromedriver to be installed.
You can use vtpy directly from the command line.
python -m vtpy --file path/to/your/file
The result will look similar to
{
id: <file_id>,
total_results: 51,
malicious_results: 0,
detailed_results: [
{ name: "Bkav", details: "Undetected" },
{ name: "Kasperky", details: "Undetected" },
...
]
}
Alternatively, you can use vtpy from within your python projects. Copy the vtpy
folder into your
project folder, then
from vtpy import vtpy
vtpy.analyze("path/to/your/file")