Commit Graph

347 Commits

Author SHA1 Message Date
LukeZGD
9d3ab0fb21 Update depends and tools 2022-04-29 16:16:31 +08:00
LukeZGD
db7af88f5b IPSWFind, IPSWVerify, and other fixes
- IPSWFind and IPSWVerify to be used for the downgrade function and custom IPSW menu option
- depends: ipwndfu="$(which python2) ipwndfu" for macOS 12.3 and newer
- fix futurerestore error detect ($?)
- a bit of cleanup
2022-04-20 10:39:57 +08:00
LukeZGD
0aba782eab Name custom IPSW depending on jailbreak tool
CustomD for daibutsu, CustomE for EtasonJB
2022-04-18 10:41:52 +08:00
LukeZGD
68997fbfae Update some messages
the "enter root password" message is not accurate. sudo doesn't ask for root password, it asks for the current user's password
2022-03-05 19:57:23 +08:00
LukeZGD
3b665b1627 DFU Advanced Menu now requires an argument 2021-11-25 15:24:50 +08:00
LukeZGD
a4eacc24cc Update 2021-11-20 21:56:52 +08:00
LukeZGD
4c3b850772 Add latest version signing check and fix other stuff 2021-11-18 18:33:15 +08:00
LukeZGD
83087e0fdc Some Shellcheck stuff 2021-11-17 14:37:02 +08:00
LukeZGD
5f27ef2db6 Fix "Downgrade command not found"
also fix main menu items
2021-11-09 16:59:56 +08:00
LukeZGD
5b773d3b4a Fix the custom IPSW option from main menu
Creating the custom IPSW from the main menu doesn't actually bundle a jailbreak, oops. This has been fixed here
2021-11-09 09:55:51 +08:00
LukeZGD
89d4e13036 Add NoDevice mode and fix some errors
perform operations without an iOS device connected (create custom IPSW for 32-bit devices, and saving OTA blobs)
2021-11-07 21:29:31 +08:00
LukeZGD
26a3236d61 Some script updates
- Print device version
- Do not run SimpleHTTPServer as root
- Other cleanup stuff
2021-11-06 22:10:04 +08:00
LukeZGD
4be22f7c9c Add option to create custom IPSW from main menu 2021-11-04 09:07:42 +08:00
LukeZGD
c15e3c7984 Support flashing latest baseband with the jailbreak option
- iOS-OTA-Downgrader will now be able to flash the latest baseband even if the jailbreak option is enabled
- idevicerestore is now removed, futurerestore will now always be used
- windows support is now removed (now in the "windows" branch and will no longer be updated or supported)
- custom ipsw option is now removed
- existing custom ipsw's created from previous commits will need to be deleted and re-created to use starting from this commit
- custom ipsw's created in the windows version will NOT be compatible with the latest linux/macos versions of ota downgrader
2021-11-02 16:21:06 +08:00
LukeeGD
f28130e5ec
Update futurerestore to beta (#142)
* Update futurerestore to beta

- both pwndfu 32bit and a7 restores work
- added 10.3.3 keys to firmware for local server
- old futurerestore binaries have been removed
- a7 doesnt need custom ipsw anymore, except on windows
- windows still uses futurerestore 194 and custom ipsw for a7, but this is rarely used anyways so yea
- closes #116
2021-10-21 19:42:50 +08:00
LukeZGD
987902ad90 Move option selections at the start
also add better messages
2021-10-12 15:02:37 +08:00
LukeZGD
74ebb9c63e Added all files from iOS-OTA-Downgrader-Keys 2021-10-07 21:50:26 +08:00
LukeZGD
1f202bc05b Add more info and do not allow to run as root
idk why i didnt add this sooner, running the script as root is a terrible idea and can break permissions

the script will only run tools as root when required, using sudo
2021-10-02 12:46:35 +08:00
LukeZGD
5ad141bd3c Limit DFU menu options on Windows 2021-09-30 13:05:27 +08:00
LukeZGD
cf0c9e472c Update tools on Windows
also allow a7 restores, which is not tested
2021-09-30 11:49:41 +08:00
LukeZGD
bacb2fdf19 Fix tool extracting and color output on Windows 2021-09-29 23:19:18 +08:00
LukeeGD
ec7adc51a9
Add Windows support (#138)
- Tested on Windows 10 64-bit 1809, iTunes 12.10.something (I don't remember the specific version), and the latest MSYS2
- To run iOS-OTA-Downgrader on Windows, MSYS2 and iTunes are needed to be installed
2021-09-29 13:33:34 +08:00
LukeZGD
5bf496195e Some updates and remove unused 2021-09-13 20:02:22 +08:00
LukeeGD
5c014be961
Support for daibutsu jailbreak with daibutsuCFW (#129)
* Get started

* Up

* up

* Now working

* Update README.md

* Update README.md

* Input for ProductType and UniqueChipID if needed

* Update

* Update depends.sh

* Update README.md

* Update restore.sh

* Update README.md
2021-09-06 16:50:29 +08:00
LukeeGD
073615b140
Update and fix various stuff (#107)
* Add FindDevice timeout and choice to continue

* Use libimobiledevice and libirecovery from Homebrew when detected

* Update depends.sh

* Detect ASi homebrew, add attempts for entering pwnREC

* Update depends.sh

* Fix some things
2021-07-12 22:36:51 +08:00
LukeZGD
adcb0a19ef Update first checks 2021-07-10 08:25:21 +08:00
LukeZGD
9c7315e659 Update M1 Mac message 2021-06-22 09:24:42 +08:00
LukeZGD
0a3d69fda3 Add restore tool selection, switch to m1stadev futurerestore, other fixes
- Restore selection is for 32-bit restores without jailbreak option
- In case that futurerestore fails, users can select 2 (idevicerestore) and create custom IPSW without jailbreak
- Switch to m1stadev fork of futurerestore (194), I tested it and works for 10.3.3 A7 restores, hopefully it works fine for others as well
- Other fixes in the scripts
2021-06-20 17:45:53 +08:00
LukeZGD
5e34ef5f94 Some changes 2021-06-19 15:31:20 +08:00
LukeZGD
1ea936d55f Clean and exit 1 on SIGINT and SIGTERM 2021-06-01 09:49:00 +08:00
LukeZGD
b136abe5ec Fix drag and drop to terminal 2021-06-01 09:02:27 +08:00
LukeZGD
6ece48eb0a Update restore.sh 2021-05-30 11:06:48 +08:00
LukeZGD
555c53fbd2 Exit codes and other stuff 2021-05-30 11:03:39 +08:00
LukeeGD
a2923a575e
Code refactoring, split to multiple scripts, general improvements (#96)
Lots of changes from this PR!
2021-05-29 19:26:08 +08:00
LukeZGD
dc694d49cf Update restore.sh 2021-05-17 18:57:04 +08:00
LukeZGD
b4bb865bdb libzip for Ubuntu 21.04 2021-05-15 16:19:20 +08:00
LukeZGD
02cbca4a3a Fix missing 2021-05-03 13:07:16 +08:00
LukeZGD
714a6fa603 More updates
- Thanks to Yaya48 (#91) for some of the changes
- Update iPwnder32 to 3.2.0
- Use preinstalled bspatch macos
- Add some changes from Yaya48
- Let M1 macs proceed with the script but add note that I cannot support it if things break
2021-05-03 11:09:21 +08:00
LukeZGD
e00264f5e5 Do not use "function" 2021-05-01 14:21:29 +08:00
LukeZGD
dd66193a10 Some changes in SSH part 2021-04-30 19:21:07 +08:00
LukeeGD
44174c2d90
Fix codesign 2021-04-30 08:21:25 +08:00
LukeZGD
1515a37cbf Move codesign idevicerestore macOS (for #85) 2021-04-25 21:02:28 +08:00
LukeZGD
d5aa99659f Add more details in readme 2021-04-24 10:51:00 +08:00
LukeZGD
491db76b61 Some pwnDFU fixes
Skip "Booting iBSS" when iPwnder32 is used
2021-04-19 16:04:30 +08:00
LukeZGD
db116131ec Updates 2021-04-14 15:25:04 +08:00
LukeZGD
418cc3c091 More updates
- rename from libimobiledevice_macos to just libimobiledevice
- update saved/pkg to saved/lib
- some message updates
- update baseband saved location
- add 21.04 hirsute in advance
- add message that 16.04 is eol and no longer supported
2021-03-25 10:29:47 +08:00
LukeZGD
ee2c585585 Fix 16.04 support (support will be removed soon)
When 21.04 Hirsute gets released, 16.04 Xenial support will be removed
2021-03-24 13:54:25 +08:00
LukeZGD
b1ede8a2b1 Update depends install, add Debian support 2021-03-22 15:28:12 +08:00
LukeZGD
127f0d88be Fix verifying IPSW 2021-03-12 14:32:06 +08:00
LukeZGD
bb190d3001 Disable EtasonJB bootloop protection
- (#70)
- also add some more notes/info
2021-03-12 11:41:39 +08:00
LukeZGD
d870f5d8ca Add more messages in the SSH and pwnDFU part
- Lets the user know their options/steps for a successful SSH connection
- Also add message regarding pwnDFU
2021-03-05 12:49:07 +08:00
LukeZGD
b4f7bacf92 Continue if saved blobs detected
Allows the script to continue when saved blobs are detected even if the target version is now unsigned
2021-03-05 11:54:19 +08:00
LukeZGD
9040db1fca Small update for install 2021-02-27 11:05:24 +08:00
LukeZGD
c635022632 Some changes in error detection 2021-02-20 16:28:42 +08:00
LukeZGD
7882edf2f1 Full upgrade for Arch 2021-02-19 14:29:07 +08:00
LukeZGD
a0155e44af macOS iPwnder32 v3.1.2 binary 2021-02-13 12:32:33 +08:00
LukeZGD
b0b747f7c0 macOS iPwnder32 v3.1.2 2021-02-11 12:29:40 +08:00
LukeZGD
758c99cc7b Use latest iPwnder32 macOS 2021-02-04 12:10:00 +08:00
LukeZGD
6f0fdbf691 Remove nvram wifiaddr "workaround"
To undo the nvram changes, run "nvram -d wifiaddr" as root
2021-01-24 11:47:51 +08:00
LukeZGD
cef83c9dca An update 2021-01-15 11:35:58 +08:00
LukeeGD
deb6e52631 Update README 2021-01-10 15:27:00 +08:00
lukee
680de2592d Always download latest imobiledevice-net macOS 2020-12-31 17:12:48 +08:00
LukeeGD
2d6c9b5452 Support for openSUSE Leap 15.2 2020-12-22 18:51:05 +08:00
LukeeGD
f985f63871 Try again with Wi-Fi SSH when USB SSH fails 2020-12-15 07:29:32 +08:00
LukeeGD
b6a70ba8e3 Fix more errors on Tumbleweed 2020-12-14 19:08:35 +08:00
LukeeGD
7f8d619bf1 Support for openSUSE Tumbleweed 2020-12-14 18:55:15 +08:00
LukeeGD
6b9032cb5b Fix partialzip (oops)
fixes #71
2020-12-04 21:58:18 +08:00
LukeeGD
e3be2d4447
For partialzip 2020-12-03 19:05:42 +08:00
LukeeGD
a0d3b7faa6 Fix ipsw tool not running in Fedora 2020-11-23 16:15:16 +08:00
LukeeGD
e97b846571 Update restore.sh 2020-11-17 07:46:16 +08:00
LukeeGD
7fadc9f9c7 Don't use wildcard in finding bbfw 2020-11-16 21:00:19 +08:00
LukeeGD
7349895d2b Baseband again 2020-11-16 11:04:28 +08:00
LukeeGD
9107776d33 Fix a potential issue with iPhone5,1 baseband 2020-11-15 19:15:09 +08:00
LukeeGD
f93bc386f5 For #68 2020-10-30 08:47:49 +08:00
LukeeGD
4d02626e5d For #67 2020-10-30 08:46:33 +08:00
LukeeGD
b488400221 Small changes 2020-10-22 20:28:31 +08:00
LukeeGD
45594ec592 Give user option for iPhone5,1 baseband 2020-10-22 13:16:51 +08:00
LukeeGD
91a90b7edd Do not flash latest baseband on iPhone5,1 2020-10-22 12:13:25 +08:00
LukeeGD
5692544bb2 Run codesign for idevicerestore macOS 2020-10-21 21:14:37 +08:00
LukeeGD
35ab7b3585 Update restore.sh 2020-10-19 12:59:45 +08:00
LukeeGD
2422c005f8 Untested 16.04 support
not recommended to run on 16.04! use 18.04 and newer
2020-10-19 12:17:49 +08:00
LukeeGD
c2c5dc0344 Faster script startup, NVRAM thing 2020-10-19 11:39:30 +08:00
LukeeGD
c0b9ec80ec macOS idevicerestore again
not sure about this, hopefully works nicely now
2020-10-08 16:00:18 +08:00
LukeeGD
810ebb2ea4
Move os-release
should fully fix 18.04 support (#60)
2020-10-06 17:12:16 +08:00
LukeeGD
56fb0ddea2 Fix idevicerestore on 18.04 2020-10-06 10:47:44 +08:00
LukeeGD
ad4dd4bb7a Revert "macOS use idevicerestore s0uthwest"
This reverts commit bfe5d98521.
2020-10-03 11:21:15 +08:00
LukeeGD
bfe5d98521 macOS use idevicerestore s0uthwest
use idevicerestore from s0uthwest instead of from odysseusota
2020-09-23 16:40:39 +08:00
LukeeGD
71010fce8b macOS imobiledevice-net v1.3.6
and other fixes

also not sure if this will help #56
2020-09-23 12:46:35 +08:00
LukeeGD
be7c48b409 Dont prompt jailbreak option on "Other" 2020-09-19 22:41:16 +08:00
LukeeGD
39b3641989 Small update and add compile script 2020-09-18 10:17:57 +08:00
LukeeGD
3dc34d35fd Fix kDFU part in Linux 2020-09-17 20:51:04 +08:00
LukeeGD
8204a73358 More fixes and remove stuff not needed 2020-09-17 11:04:34 +08:00
LukeeGD
e820c2f497 Fix more things
and add more checks
2020-09-16 22:13:48 +08:00
LukeeGD
a8a77f1fca Fix some things 2020-09-16 20:59:09 +08:00
LukeeGD
5e690a4eab Update restore.sh 2020-09-16 16:46:46 +08:00
LukeeGD
20aba8fee6 Fix unable to detect device 2020-09-16 16:43:31 +08:00
LukeeGD
0709e04a4f Add option to jailbreak iOS 8 downgrades 2020-09-16 14:50:12 +08:00
LukeeGD
c8e6db49b7 Add iOS 6 can be jailbroken
also fix link
2020-09-15 18:31:46 +08:00
LukeeGD
1e209e7a55 Add option to jailbreak iOS 6 downgrades 2020-09-15 18:25:37 +08:00
LukeeGD
3b01915462 Update README for easier reading and usage
Users can now drag restore.sh to terminal window
2020-09-15 11:46:17 +08:00
LukeeGD
8200dc2da3 Disable selecting iPwnder32 for Linux
- also completely fix iBSSb and iBECb errors on 5S
2020-09-15 06:49:27 +08:00
LukeeGD
1150afd245 Fix prefix 2020-09-13 22:36:18 +08:00
LukeeGD
02003f032b Compile irecovery in resources instead of /usr/local 2020-09-13 22:26:49 +08:00
LukeeGD
3294372ea1 Add iPwnder32 as option for pwnDFU 2020-09-13 20:51:26 +08:00
LukeeGD
52594bad6e Fix iBSSb and iBECb errors on 5S
This isnt really a crucial fix
2020-09-11 22:38:51 +08:00
LukeeGD
5716a94c03 Fix IPSW name for 5S
#54
2020-09-11 18:54:06 +08:00
LukeeGD
9dc6ca1657 Prevent irecovery timeout completely
Move ideviceinfo2 above irecovery2 and check exit status
2020-09-10 17:37:53 +08:00
LukeeGD
b52c9d3c7f Fix some issues
- Fix irecovery long timeout (still has timeout but shorter)
- Removed precompiled irecovery, just compile on install like before
- Change some things at Main to prevent errors on first run
2020-09-10 17:20:46 +08:00
LukeeGD
4a2435c007 Use irecovery instead of lsusb/system_profiler
for #54

- Also change 10 seconds to 8 seconds for entering DFU
- Also remove firmware and ipwndfu folders on depends install
2020-09-10 16:28:52 +08:00
LukeeGD
be4fcb5a70 Small update for depends install
- Removed libplist and libusbmuxd (they get installed as dependencies anyway)
- Only symlink libraries for Fedora 32 and below (33 now uses latest so no symlinking)
2020-09-09 08:33:22 +08:00
LukeeGD
8783eda5b8 SaveExternal first before device detection
- Also remove selecting 8.4.1 for iPhone 5C
2020-09-08 16:17:53 +08:00
LukeeGD
9c3b68e194 Change some things in creating custom 10.3.3 IPSW
- Patch both ipad4 and ipad4b for iPads
- Change IPSWCustom name
- Same IPSW can now be reused on different ProductType A7 iPhones/iPads
- Also remove unused
2020-09-08 13:50:27 +08:00
LukeeGD
de6e5792bf An update
- Recompile futurerestore for Bionic
- Allow ipwndfu for A6 devices in recovery
- Add Ubuntu 20.10 to support (untested and not even released yet but it most likely will work anyway)
2020-09-07 15:55:38 +08:00
LukeeGD
ce1d47c88a More updates for Linux tools and depends
- Recompile futurerestore and tsschecker again with static irecovery libs
- Add compiled irecovery, libirecovery no longer needed to be compiled
- Remove igetnonce
- Remove unneeded depends
2020-09-06 15:57:01 +08:00
LukeeGD
2d8d9482c1 Recompile futurerestore and tsschecker linux
- Do not distribute dynamic libs anymore
2020-09-02 22:14:36 +08:00
LukeeGD
f2456f3b1d Removed nonworking msys support
- to clean up the code a bit, msys support has been removed (that isn't working anyway)
- it's now in the separate win branch again with some fixes
- win branch will only be merged if I ever get a working futurerestore with libipatcher for windows
2020-09-02 13:46:55 +08:00
LukeeGD
479b320bc7 Added color to script output
add "NoColor" argument to disable
2020-09-01 10:25:27 +08:00
LukeeGD
2b51dc6598 SHSH name 2020-08-30 22:12:39 +08:00
LukeeGD
6106695a63 Fix being unable to find SHSH
for #53

- will now always convert ecid hex to dec
- also some changes in clean function
2020-08-30 21:42:24 +08:00
LukeeGD
4a8af9f302 Update some things
- Update Dropbear deb link
- Remove irecovery macOS (now comes from imobiledevice-net)
- Changes in some error messages
2020-08-27 18:50:47 +08:00
LukeeGD
204deb6a43
Fix #52 2020-08-26 16:27:44 +08:00
LukeeGD
6f2bf6ed0c Update restore.sh 2020-08-25 14:50:27 +08:00
LukeeGD
3e340b5e75 Untested MSYS MinGW64 support 2020-08-25 14:42:57 +08:00
LukeeGD
d823cfcb0d SHSH APNonce 2020-08-24 19:07:44 +08:00
LukeeGD
1d5f7efb83 Move iBEC/iBSS stuff to BasebandDetect
also for #49
2020-08-22 18:50:29 +08:00
LukeeGD
d9c2ca48c7 Put HWModels in script (for #49) 2020-08-22 09:52:58 +08:00
LukeeGD
fd1a851023 Fix libirecovery error and update readme 2020-08-17 20:31:15 +08:00
LukeeGD
631b347842
Forgot tsschecker macos 2020-08-17 14:14:08 +08:00
LukeeGD
e59c7a7edc Replace pzb with partial-zip 2020-08-16 19:25:32 +08:00
LukeeGD
b1485900ee Some changes for Linux stuff
- Don't mess with /usr/lib and /usr/local/lib anymore
- libirecovery will still be compiled and installed
- Also update bionic sha1
2020-08-16 15:09:55 +08:00
LukeeGD
9c95d11330
Advanced options 32-bit 2020-08-16 12:23:07 +08:00
LukeeGD
28644d7722
Update restore.sh 2020-08-15 01:10:52 +08:00
LukeeGD
684a9ef9ae Re-add Bionic support 2020-08-14 16:07:14 +08:00
LukeeGD
bc0c0f650c
Update restore.sh 2020-08-14 13:34:48 +08:00
LukeeGD
a3126703b2
Forgot to add xcode select 2020-08-14 12:43:30 +08:00
LukeeGD
59c8bbc8de
SaveExternal first before detect 2020-08-14 12:27:55 +08:00
LukeeGD
cdc9d7d1e5 Some more changes 2020-08-14 12:05:43 +08:00
LukeeGD
d55072aaa8 Changes for dependencies (especially macOS)
- python3 no longer required
- Homebrew no longer required
- macOS libimobiledevice is from imobiledevice-net
2020-08-14 11:57:20 +08:00
LukeeGD
028d6fb283 Some changes 2020-08-13 12:57:31 +08:00
LukeeGD
cd8eca768d Fix syntax error 2020-08-13 10:11:33 +08:00
LukeeGD
54a4d04333 Update restore.sh 2020-08-12 22:08:14 +08:00
LukeeGD
e15aac2ab9 Add more options for 32-bit DFU
not tested, for more advanced users only
2020-08-12 22:05:51 +08:00
LukeeGD
0945dd1a83 Depends 2020-08-11 09:33:00 +08:00
LukeeGD
98423fa73a Dependency install 2020-08-11 08:57:18 +08:00
LukeeGD
6f29f7d04a Update README add more notes 2020-08-10 22:08:15 +08:00
LukeeGD
43abc41ca3 Update patches 2020-08-05 11:07:28 +08:00
LukeeGD
b76e22bb12
Update SaveExternal 2020-08-04 23:49:55 +08:00
LukeeGD
4a0b20351c Find device in pwnREC
(for A7) remove "continuing anyway" as that will just always fail
2020-08-04 17:48:10 +08:00
LukeeGD
7b18f3bdb1 Fix iproxy 2020-08-04 17:21:02 +08:00
LukeeGD
66e64ed1b2 Check for iproxy 2020-08-04 16:24:19 +08:00