Skip to content

Instantly share code, notes, and snippets.

@assafmo
Last active October 30, 2018 23:31
Show Gist options
  • Save assafmo/7aa852d0b9ee377d42bb120212c439a2 to your computer and use it in GitHub Desktop.
Save assafmo/7aa852d0b9ee377d42bb120212c439a2 to your computer and use it in GitHub Desktop.
Query VirusTotal.com for malicious sha256 / sha1 / md5
#!/bin/sh
hash="$1"
curl "https://www.virustotal.com/ui/files/$hash" \
-H 'dnt: 1' \
-H 'accept-encoding: gzip, deflate, br' \
-H 'accept-language: en-US,en;q=0.8' \
-H 'user-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.91 Safari/537.36' \
-H 'accept: application/json' \
-H 'referer: https://www.virustotal.com/' \
-H 'authority: www.virustotal.com' \
--compressed -s
@assafmo
Copy link
Author

assafmo commented Jan 14, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment