Last active
July 20, 2020 03:05
-
-
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
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
| # 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