Skip to content

Instantly share code, notes, and snippets.

@buzzer-re
Last active July 20, 2020 03:05
Show Gist options
  • Select an option

  • Save buzzer-re/7ac020e5f75d2b03e253689766142480 to your computer and use it in GitHub Desktop.

Select an option

Save buzzer-re/7ac020e5f75d2b03e253689766142480 to your computer and use it in GitHub Desktop.
curl the public virus total endpoint to retrieve the report in json format
# Use the "public api" that https://www.virustotal.com/old-browsers/ uses for request the sample information
echo "[+] Virus Total file checker [+]"
if [ $# -ne 1 ]
then
echo "Usage: $0 <SHA1>"
exit
fi
BASE_URL="https://www.virustotal.com/ui/files/"
echo "Using $BASE_URL as base url!"
curl -s $BASE_URL$1 > $1.json
echo "Saved as $1.json!"
# Example
# Requesting file SSDEEP
# jq .data.attributes.ssdeep ffcee7d4573c428e9e240c731a7cb7fc.json
# "1536:hfesfIsGtnVNrms98FVkq9pUYKx+hD9EqUtnwHECO+iC5x:zwsAz9AVk2ppKx+h5EqUtnwkW5x"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment