Update restore.sh

This commit is contained in:
LukeeGD 2020-03-31 14:13:51 +08:00
parent dc947f9114
commit 72a649e329

View File

@ -188,9 +188,9 @@ function kDFU {
mv $iBSS.dfu saved/$ProductType mv $iBSS.dfu saved/$ProductType
fi fi
echo "[Log] Decrypting iBSS..." echo "[Log] Decrypting iBSS..."
echo "IV = ${!IV}" echo "IV = $IV"
echo "Key = ${!Key}" echo "Key = $Key"
resources/tools/xpwntool_$platform saved/$ProductType/$iBSS.dfu tmp/iBSS.dec -k ${!Key} -iv ${!IV} -decrypt resources/tools/xpwntool_$platform saved/$ProductType/$iBSS.dfu tmp/iBSS.dec -k $Key -iv $IV -decrypt
dd bs=64 skip=1 if=tmp/iBSS.dec of=tmp/iBSS.dec2 dd bs=64 skip=1 if=tmp/iBSS.dec of=tmp/iBSS.dec2
echo "[Log] Patching iBSS..." echo "[Log] Patching iBSS..."
bspatch tmp/iBSS.dec2 tmp/pwnediBSS resources/patches/$iBSS.patch bspatch tmp/iBSS.dec2 tmp/pwnediBSS resources/patches/$iBSS.patch