This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#upload a file | |
curl -X POST 'https://www.virustotal.com/vtapi/v2/file/scan' --form apikey=your-apikey --form [email protected];eicar.com.txt | |
#rescan a file | |
curl -X POST 'https://www.virustotal.com/vtapi/v2/file/rescan' --form apikey=your-apikey --form resource=275a021bbfb6489e54d471899f7db9d1663fc695ec2fe2a2c4538aabf651fd0f | |
# get scan results | |
curl -X POST 'https://www.virustotal.com/vtapi/v2/file/report' --form apikey=your-apikey --form resource=275a021bbfb6489e54d471899f7db9d1663fc695ec2fe2a2c4538aabf651fd0f |