Skip to content

Commit

Permalink
Add 16/17 version detection
Browse files Browse the repository at this point in the history
  • Loading branch information
Cryptiiiic committed Mar 26, 2024
1 parent 44ee2ca commit 9dcfbe5
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions src/ibootpatchfinder64.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,14 +82,18 @@ ibootpatchfinder64 *ibootpatchfinder64::make_ibootpatchfinder64(const void *buff
debug("iBoot-%d inputted\n", vers);

if (vers >= 6671) {
if(vers >= 7429 && vers < 8419) {
printf("iOS 15 iBoot detected!\n");
if(vers >= 10151) {
printf("iOS 17 iBoot detected!\n");
} else if(vers >= 8419 && vers < 10151) {
printf("iOS 16 iBoot detected!\n");
} else if(vers >= 7429 && vers < 8419) {
printf("iOS 15 iBoot detected!\n");
} else if(vers >= 8419 && vers <= 9000) {
printf("iOS 16 iBoot detected!\n");
printf("iOS 16 iBoot detected!\n");
} else if(vers < 7429) {
printf("iOS 14 iBoot detected!\n");
printf("iOS 14 iBoot detected!\n");
} else {
printf("Unknown iOS versioned iBoot detected!\n");
printf("Unknown iOS versioned iBoot detected!\n");
}
return new ibootpatchfinder64_iOS14(buf,bufSize,takeOwnership);
}
Expand Down

0 comments on commit 9dcfbe5

Please # to comment.