From 3c3709d22a09e8d0f8622e817e18b67367b3eb1f Mon Sep 17 00:00:00 2001 From: Nebula Date: Sun, 13 Nov 2022 15:52:38 -0500 Subject: [PATCH] forgot python3 thing --- palera1n.sh | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/palera1n.sh b/palera1n.sh index e0825f2..cd87981 100755 --- a/palera1n.sh +++ b/palera1n.sh @@ -224,10 +224,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 # ============ @@ -440,9 +440,9 @@ if [ ! -f blobs/"$deviceid"-"$version".shsh2 ]; then "$dir"/pzb -g "$(awk "/""$cpid""/{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/ @@ -451,9 +451,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/ @@ -493,15 +493,15 @@ if [ ! -f blobs/"$deviceid"-"$version".shsh2 ]; then echo "[*] Patching kernelcache" cd .. if [[ "$deviceid" == "iPhone8"* ]] || [[ "$deviceid" == "iPad6"* ]]|| [[ "$deviceid" == *'iPad5'* ]]; then - python3.10 -m pyimg4 im4p extract -i work/"$(awk "/""$model""/{x=1}x&&/kernelcache.release/{print;exit}" work/BuildManifest.plist | grep '' | cut -d\> -f2 | cut -d\< -f1)" -o work/kcache.raw --extra work/kpp.bin + python3 -m pyimg4 im4p extract -i work/"$(awk "/""$model""/{x=1}x&&/kernelcache.release/{print;exit}" work/BuildManifest.plist | grep '' | cut -d\> -f2 | cut -d\< -f1)" -o work/kcache.raw --extra work/kpp.bin else - python3.10 -m pyimg4 im4p extract -i work/"$(awk "/""$model""/{x=1}x&&/kernelcache.release/{print;exit}" work/BuildManifest.plist | grep '' | cut -d\> -f2 | cut -d\< -f1)" -o work/kcache.raw + python3 -m pyimg4 im4p extract -i work/"$(awk "/""$model""/{x=1}x&&/kernelcache.release/{print;exit}" work/BuildManifest.plist | grep '' | cut -d\> -f2 | cut -d\< -f1)" -o work/kcache.raw fi "$dir"/Kernel64Patcher work/kcache.raw work/kcache.patched -a -o if [[ "$deviceid" == *'iPhone8'* ]] || [[ "$deviceid" == *'iPad6'* ]] || [[ "$deviceid" == *'iPad5'* ]] && [[ ! $1 == *"--tweaks"* ]]; then - python3.10 -m pyimg4 im4p create -i work/kcache.patched -o work/kcache.im4p -f krnl --extra work/kpp.bin --lzss + python3 -m pyimg4 im4p create -i work/kcache.patched -o work/kcache.im4p -f krnl --extra work/kpp.bin --lzss elif [[ ! $1 == *"--tweaks"* ]]; then - python3.10 -m pyimg4 im4p create -i work/kcache.patched -o work/kcache.im4p -f krnl --lzss + python3 -m pyimg4 im4p create -i work/kcache.patched -o work/kcache.im4p -f krnl --lzss fi "$dir"/img4 -i work/kcache.im4p -o work/kernelcache -M work/apticket.der `if [ "$os" = 'Linux' ]; then echo "-J"; fi`