Skip to content

Instantly share code, notes, and snippets.

@beamzer
Created June 19, 2021 08:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save beamzer/55b7865fe0a39c87ab26e7c164e4b168 to your computer and use it in GitHub Desktop.
Save beamzer/55b7865fe0a39c87ab26e7c164e4b168 to your computer and use it in GitHub Desktop.
vtcheck () {
myhash=$(sha256.pl $1 )
curl --silent https://www.virustotal.com/vtapi/v2/file/report -F apikey=$VTAPI -F resource=$myhash | jq '.scans |= with_entries(select(.value.detected) | .value |= .version + " / " + .update + " / " + .result)'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment