Skip to content

Instantly share code, notes, and snippets.

@jacobsalmela
Created March 7, 2016 19:56
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save jacobsalmela/19ed5e8179d812f986d4 to your computer and use it in GitHub Desktop.
Save jacobsalmela/19ed5e8179d812f986d4 to your computer and use it in GitHub Desktop.
Displays a dialog with three checksums to prevent the installation of malware
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
@deekayen
Copy link

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/

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