InfectedPacket

KSH Wordpress Download Integrity Check

Jan 1st, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.34 KB | None | 0 0
  1. ftp -C -S do https://en-ca.wordpress.org/wordpress-4.7-en_CA.tar.gz
  2. ftp -C -S do https://en-ca.wordpress.org/wordpress-4.7-en_CA.tar.gz.md5
  3. filesum=`md5 -q wordpress-4.7-en_CA.tar.gz`
  4. validsum=`cat https://en-ca.wordpress.org/wordpress-4.7-en_CA.tar.gz.md5 | tr -s " "`
  5. test $filesum -eq $validsum && echo "File is valid." || echo "File is invalid."
Add Comment
Please, Sign In to add comment