Tiny Core Linux

Tiny Core Base => TCB Bugs => Topic started by: TOXiC_RU on September 01, 2012, 04:45:54 AM

Title: Bad encryption password not handled by filetool.sh
Post 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
...
Title: Re: Bad encryption password not handled by filetool.sh
Post by: roberts on September 05, 2012, 12:52:11 AM
To handle the case of an altered key during system use.
OK. Accepted. Thanks!