Tiny Core Linux
Tiny Core Base => TCB Bugs => Topic started by: TOXiC_RU on September 01, 2012, 04:45:54 AM
-
Version 4.6
Bad encryption password not handled by filetool.sh
Here some workaround for this:
in "RESTORE" section of filetool.sh
...
KEY=$(sudo cat /etc/sysconfig/bfe)
# FIX: check decryption key
cat << EOD | sudo /usr/bin/bcrypt -o "$MOUNTPOINT"/"$FULLPATH"/$TARGETFILE 2>/dev/null >/dev/null
"$KEY"
EOD
if [ "$?" != 0 ]; then failed; fi
# FIX: end of checks
if grep -q "comparerestore" /proc/cmdline && [ ! -e /etc/sysconfig/comparerestore ]; then
...
-
To handle the case of an altered key during system use.
OK. Accepted. Thanks!