Created
November 18, 2015 11:20
-
-
Save jonaschl/f2b1e19f3edd93d5b19a to your computer and use it in GitHub Desktop.
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment