diff --git a/palera1n.sh b/palera1n.sh index fe46cb0..0f47401 100755 --- a/palera1n.sh +++ b/palera1n.sh @@ -232,10 +232,10 @@ if [ ! -e "$dir"/gaster ]; then fi # Check for pyimg4 -if ! python3.10 -c 'import pkgutil; exit(not pkgutil.find_loader("pyimg4"))'; then +if ! python3 -c 'import pkgutil; exit(not pkgutil.find_loader("pyimg4"))'; then echo '[-] pyimg4 not installed. Press any key to install it, or press ctrl + c to cancel' read -n 1 -s - python3.10 -m pip install pyimg4 + python3 -m pip install pyimg4 fi # ============ @@ -411,9 +411,15 @@ if [ ! -f blobs/"$deviceid"-"$version".shsh2 ]; then _kill_if_running iproxy exit fi - "$dir"/sshpass -p 'alpine' ssh -o StrictHostKeyChecking=no -p2222 root@localhost "/bin/rm -rf /usr/local/bin/loader.app/Info.plist /usr/local/bin/loader.app/Base.lproj /usr/local/bin/loader.app/PkgInfo" + "$dir"/sshpass -p 'alpine' ssh -o StrictHostKeyChecking=no -p2222 root@localhost "/bin/mkdir -p /mnt1/private/var/root/temp" sleep 1 - "$dir"/sshpass -p 'alpine' ssh -o StrictHostKeyChecking=no -p2222 root@localhost "/bin/cp -rf /usr/local/bin/loader.app/* $tipsdir" + "$dir"/sshpass -p 'alpine' ssh -o StrictHostKeyChecking=no -p2222 root@localhost "/bin/cp -r /usr/local/bin/loader.app/* /mnt1/private/var/root/temp" + sleep 1 + "$dir"/sshpass -p 'alpine' ssh -o StrictHostKeyChecking=no -p2222 root@localhost "/bin/rm -rf /mnt1/private/var/root/temp/Info.plist /mnt1/private/var/root/temp/Base.lproj /mnt1/private/var/root/temp/PkgInfo" + sleep 1 + "$dir"/sshpass -p 'alpine' ssh -o StrictHostKeyChecking=no -p2222 root@localhost "/bin/cp -rf /mnt1/private/var/root/temp/* $tipsdir" + sleep 1 + "$dir"/sshpass -p 'alpine' ssh -o StrictHostKeyChecking=no -p2222 root@localhost "/bin/rm -rf /mnt1/private/var/root/temp" sleep 1 "$dir"/sshpass -p 'alpine' ssh -o StrictHostKeyChecking=no -p2222 root@localhost "/usr/sbin/chown 33 $tipsdir/Tips" sleep 1 @@ -456,9 +462,9 @@ if [ ! -f blobs/"$deviceid"-"$version".shsh2 ]; then "$dir"/pzb -g "$(awk "/""$model""/{x=1}x&&/kernelcache.release/{print;exit}" BuildManifest.plist | grep '' | cut -d\> -f2 | cut -d\< -f1)" "$ipswurl" mv kernelcache.release.* work/kernelcache if [[ "$deviceid" == "iPhone8"* ]] || [[ "$deviceid" == "iPad6"* ]]|| [[ "$deviceid" == *'iPad5'* ]]; then - python3.10 -m pyimg4 im4p extract -i work/kernelcache -o work/kcache.raw --extra work/kpp.bin + python3 -m pyimg4 im4p extract -i work/kernelcache -o work/kcache.raw --extra work/kpp.bin else - python3.10 -m pyimg4 im4p extract -i work/kernelcache -o work/kcache.raw + python3 -m pyimg4 im4p extract -i work/kernelcache -o work/kcache.raw fi sleep 1 "$dir"/sshpass -p 'alpine' scp -o StrictHostKeyChecking=no -P2222 work/kcache.raw root@localhost:/mnt6/$active/System/Library/Caches/com.apple.kernelcaches/ @@ -467,9 +473,9 @@ if [ ! -f blobs/"$deviceid"-"$version".shsh2 ]; then "$dir"/Kernel64Patcher work/kcache.patched work/kcache.patched2 -o -e -u sleep 1 if [[ "$deviceid" == *'iPhone8'* ]] || [[ "$deviceid" == *'iPad6'* ]] || [[ "$deviceid" == *'iPad5'* ]]; then - python3.10 -m pyimg4 im4p create -i work/kcache.patched2 -o work/kcache.im4p -f krnl --extra work/kpp.bin --lzss + python3 -m pyimg4 im4p create -i work/kcache.patched2 -o work/kcache.im4p -f krnl --extra work/kpp.bin --lzss elif [[ $1 == *"--tweaks"* ]]; then - python3.10 -m pyimg4 im4p create -i work/kcache.patched2 -o work/kcache.im4p -f krnl --lzss + python3 -m pyimg4 im4p create -i work/kcache.patched2 -o work/kcache.im4p -f krnl --lzss fi sleep 1 "$dir"/sshpass -p 'alpine' scp -o StrictHostKeyChecking=no -P2222 work/kcache.im4p root@localhost:/mnt6/$active/System/Library/Caches/com.apple.kernelcaches/