Created
March 7, 2016 19:56
-
-
Save jacobsalmela/19ed5e8179d812f986d4 to your computer and use it in GitHub Desktop.
Displays a dialog with three checksums to prevent the installation of malware
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
osascript <<EOT | |
display dialog "MD5: | |
$(openssl md5 $1 | awk '{print $2}') | |
SHA1: | |
$(openssl sha1 $1 | awk '{print $2}') | |
SHA256: | |
$(openssl dgst -sha256 $1 | awk '{print $2}')" with title "$(basename $1)" with icon Caution | |
EOT |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Linking to where you discussed using this gist with something like Hazel.
http://jacobsalmela.com/prevent-ransomware-by-automatically-finding-the-checksum-of-downloaded-files/