diff --git a/security_fixes.sh b/security_fixes.sh index 8b0477c..7993ff3 100644 --- a/security_fixes.sh +++ b/security_fixes.sh @@ -18,6 +18,7 @@ # You can download the latest version of this script from: # https://github.com/MiSTer-devel/Scripts_MiSTer +# Version 1.2.10 - 2019-06-03 - Testing Internet connectivity with github.com instead of google.com; refined the check for standard root password. # Version 1.2.9 - 2019-06-03 - Refined the check for standard root password. # Version 1.2.8 - 2019-05-27 - Refined the check for standard root password. # Version 1.2.7 - 2019-05-25 - Refined the check for standard root password. @@ -56,7 +57,7 @@ if (( $EUID != 0 )); then exit 3 fi -if cat /etc/shadow | grep -o "^root:[^:]*" | md5sum | grep -q "\(^9104842aa3318a956e51a081d052d2ee \)\|\(^18de777543175ec29c71ebf177590199 \)\|\(^b136a9bff6f6f09feb2f30e12be37e22 \)\|\(^beca3beae21066c49e2f11d13fe68342 \)\|\(^8fe03c31a7fcc77d0af7177bd1f84825 \)\|\(^dba15e7cbfe81723120d89dba1cb6b91 \)\|\(^6b0cbc28900d54dc8517793507fd70f4 \)\|\(^62c14fc8d7fcb2e776f44302094c2ccd \)" +if cat /etc/shadow | grep -o "^root:[^:]*" | md5sum | grep -q "\(^9104842aa3318a956e51a081d052d2ee \)\|\(^18de777543175ec29c71ebf177590199 \)\|\(^b136a9bff6f6f09feb2f30e12be37e22 \)\|\(^beca3beae21066c49e2f11d13fe68342 \)\|\(^8fe03c31a7fcc77d0af7177bd1f84825 \)\|\(^dba15e7cbfe81723120d89dba1cb6b91 \)\|\(^6b0cbc28900d54dc8517793507fd70f4 \)\|\(^62c14fc8d7fcb2e776f44302094c2ccd \)\|\(^c71576bf3b576b79ee29bf6e4f0ea822 \)" then echo "root password is the original one from" echo "the SD-Installer; it should be changed." @@ -78,7 +79,7 @@ else fi echo "" -curl -q https://google.com &>/dev/null +curl -q https://github.com &>/dev/null case $? in 0) echo "CA certificates seem to work, no fix will be applied."