From b512ef571324b12e124529c1108c6d7b49670089 Mon Sep 17 00:00:00 2001 From: LukeZGD <26163116+LukeZGD@users.noreply.github.com> Date: Mon, 24 Jul 2023 09:36:28 +0800 Subject: [PATCH] An update --- .../{iphone5c => iphone5b}/11D257/exploit | Bin .../{iphone5c => iphone5b}/11D257/partition | 0 resources/kloader/{axi0mX => kloader_axi0mX} | Bin resources/kloader/{hgsp => kloader_hgsp} | Bin restore.sh | 16 ++++++++-------- 5 files changed, 8 insertions(+), 8 deletions(-) rename resources/firmware/src/target/{iphone5c => iphone5b}/11D257/exploit (100%) rename resources/firmware/src/target/{iphone5c => iphone5b}/11D257/partition (100%) rename resources/kloader/{axi0mX => kloader_axi0mX} (100%) rename resources/kloader/{hgsp => kloader_hgsp} (100%) diff --git a/resources/firmware/src/target/iphone5c/11D257/exploit b/resources/firmware/src/target/iphone5b/11D257/exploit similarity index 100% rename from resources/firmware/src/target/iphone5c/11D257/exploit rename to resources/firmware/src/target/iphone5b/11D257/exploit diff --git a/resources/firmware/src/target/iphone5c/11D257/partition b/resources/firmware/src/target/iphone5b/11D257/partition similarity index 100% rename from resources/firmware/src/target/iphone5c/11D257/partition rename to resources/firmware/src/target/iphone5b/11D257/partition diff --git a/resources/kloader/axi0mX b/resources/kloader/kloader_axi0mX similarity index 100% rename from resources/kloader/axi0mX rename to resources/kloader/kloader_axi0mX diff --git a/resources/kloader/hgsp b/resources/kloader/kloader_hgsp similarity index 100% rename from resources/kloader/hgsp rename to resources/kloader/kloader_hgsp diff --git a/restore.sh b/restore.sh index b4a86e8..ed864ae 100755 --- a/restore.sh +++ b/restore.sh @@ -285,7 +285,7 @@ set_tool_paths() { fi fi else - error "Your platform ($OSTYPE) is not supported." "* Supported platforms: Linux, macOS, Windows" + error "Your platform ($OSTYPE) is not supported." "* Supported platforms: Linux, macOS" fi log "Running on platform: $platform ($platform_ver)" rm ../resources/sudoloop 2>/dev/null @@ -853,14 +853,14 @@ device_enter_mode() { if [[ $device_det == 1 ]]; then echo '[[ $(uname -a | grep -c "MarijuanARM") == 1 ]] && /tmp/hgsp /tmp/pwnediBSS || \ /tmp/kloader /tmp/pwnediBSS' >> kloaders - sendfiles+=("../resources/kloader/hgsp") + sendfiles+=("../resources/kloader/kloader_hgsp") sendfiles+=("../resources/kloader/kloader") elif [[ $device_det == 5 ]]; then echo "/tmp/kloader5 /tmp/pwnediBSS" >> kloaders sendfiles+=("../resources/kloader/kloader5") elif (( device_det < 5 )); then echo "/tmp/axi0mX /tmp/pwnediBSS" >> kloaders - sendfiles+=("../resources/kloader/axi0mX") + sendfiles+=("../resources/kloader/kloader_axi0mX") else echo "/tmp/kloader /tmp/pwnediBSS" >> kloaders sendfiles+=("../resources/kloader/kloader") @@ -1792,7 +1792,7 @@ ipsw_prepare_bundle() { if [[ $1 == "base" ]]; then case $device_type in iPhone5,[12] ) hw="iphone5";; - iPhone5,[34] ) hw="iphone5c";; + iPhone5,[34] ) hw="iphone5b";; esac case $device_base_build in "11A"* | "11B"* ) base_build="11B554a";; @@ -3140,15 +3140,15 @@ menu_print_info() { esac print "* Manufactured in Week $week $year" fi - if [[ $de_bbupdate == 1 ]]; then + if [[ -n $device_disable_bbupdate ]]; then warn "Disable bbupdate flag detected, baseband update is disabled. Proceed with caution" print "* For iPhones, current baseband will be dumped and stitched to custom IPSW" fi if [[ $device_actrec == 1 ]]; then warn "Activation records flag detected. Proceed with caution" fi - if [[ $de_bbupdate == 1 || $device_actrec == 1 ]]; then - print "* Stitching is supported in these restores/downgrades: 8.4.1/6.1.3, Other (with SHSH), powdersn0w" + if [[ -n $device_disable_bbupdate || $device_actrec == 1 ]]; then + print "* Stitching is supported in these restores/downgrades: 8.4.1/6.1.3, Other with SHSH (iOS 5+), powdersn0w" fi print "* iOS Version: $device_vers" print "* ECID: $device_ecid" @@ -3948,7 +3948,7 @@ for i in "$@"; do "--ipsw-verbose" ) ipsw_verbose=1;; "--jailbreak" ) ipsw_jailbreak=1;; "--memory" ) ipsw_memory=1;; - "--disable-bbupdate" ) de_bbupdate=1; device_disable_bbupdate=1;; + "--disable-bbupdate" ) device_disable_bbupdate=1;; "--disable-sudoloop" ) device_disable_sudoloop=1;; "--disable-usbmuxd" ) device_disable_usbmuxd=1;; "--activation-records" ) device_actrec=1;;