Skip to content

Instantly share code, notes, and snippets.

@jonaschl
Created November 18, 2015 11:20
Show Gist options
  • Save jonaschl/f2b1e19f3edd93d5b19a to your computer and use it in GitHub Desktop.
Save jonaschl/f2b1e19f3edd93d5b19a to your computer and use it in GitHub Desktop.
#!/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