-
-
Save scriptzteam/7ed9ed9fec2582d0456bf349ee26475f to your computer and use it in GitHub Desktop.
upload file to vt
This file contains 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
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