Adjust ipadiff to the latest App Store changes and cleanup

This commit is contained in:
Ali
2021-02-10 10:41:37 +04:00
parent f7bf6f1143
commit a239070a89
2 changed files with 27 additions and 16 deletions

View File

@@ -78,6 +78,9 @@ static bool cleanArch(std::vector<uint8_t> &archData, bool &isEncrypted) {
if (encryptionInfoCommand->cryptid != 0) {
isEncrypted = true;
}
// The App Store has begun to change offsets in LC_ENCRYPTION_INFO
memset(archData.data() + offset + offsetof(encryption_info_command_64, cryptoff), 0, sizeof(uint32_t));
memset(archData.data() + offset + offsetof(encryption_info_command_64, cryptsize), 0, sizeof(uint32_t));
}
offset += commandSize;