Skip to content

Instantly share code, notes, and snippets.

@scriptzteam
Forked from h4sh5/vtupload.sh
Created December 25, 2022 09:06
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 scriptzteam/7ed9ed9fec2582d0456bf349ee26475f to your computer and use it in GitHub Desktop.
Save scriptzteam/7ed9ed9fec2582d0456bf349ee26475f to your computer and use it in GitHub Desktop.
upload file to vt
apikey="xxx"
echo "$(tput setaf 7)Uploading $1 to VirusTotal$(tput sgr0)"
vt_hash=$(curl -X POST 'https://www.virustotal.com/vtapi/v2/file/scan' --form apikey=$apikey --form file=@"$(realpath $1)" | grep -o '"[0-9|a-f]{64}"' | head -1 | sed 's/"//g')
echo done: $(sha256sum $1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment