struct nonce_seeds_header {
uint32_t blob_version;
uint8_t pad[6];
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-> % sudo ./self-lsmp | |
Password: | |
argv[0] = '/usr/bin/lsmp' | |
argv[1] = '-v' | |
argv[2] = '-p' | |
argv[3] = '33302' | |
self task regular: 0x00000203 aka 515 | |
self task read: 0x00000b03 aka 2819 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# | |
# Perform iOS and iPadOS downgrade using gaster and futurerestore. | |
set -e | |
BOLD=$(tput bold) | |
readonly BOLD | |
NC=$(tput sgr0) | |
readonly NC |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/hw/arm/apple_a13.c b/hw/arm/apple_a13.c | |
index 551a055715..661d9c799c 100644 | |
--- a/hw/arm/apple_a13.c | |
+++ b/hw/arm/apple_a13.c | |
@@ -504,7 +504,9 @@ static const ARMCPRegInfo apple_a13_cp_reginfo_tcg[] = { | |
A13_CPREG_DEF(ARM64_REG_HID13, 3, 0, 15, 14, 0, PL1_RW, 0), | |
A13_CPREG_DEF(ARM64_REG_HID14, 3, 0, 15, 15, 0, PL1_RW, 0), | |
A13_CPREG_DEF(ARM64_REG_HID16, 3, 0, 15, 15, 2, PL1_RW, 0), | |
- A13_CPREG_DEF(ARM64_REG_LSU_ERR_STS, 3, 3, 15, 0, 0, PL1_RW, 0), | |
+ A13_CPREG_DEF(ARM64_REG_LSU_ERR_STS, 3, 3, 15, 0, 0, PL1_RW, 0), // A14 SYS_LSU_ERR_STS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/hw/arm/apple_a13.c b/hw/arm/apple_a13.c | |
index 551a055715..661d9c799c 100644 | |
--- a/hw/arm/apple_a13.c | |
+++ b/hw/arm/apple_a13.c | |
@@ -504,7 +504,9 @@ static const ARMCPRegInfo apple_a13_cp_reginfo_tcg[] = { | |
A13_CPREG_DEF(ARM64_REG_HID13, 3, 0, 15, 14, 0, PL1_RW, 0), | |
A13_CPREG_DEF(ARM64_REG_HID14, 3, 0, 15, 15, 0, PL1_RW, 0), | |
A13_CPREG_DEF(ARM64_REG_HID16, 3, 0, 15, 15, 2, PL1_RW, 0), | |
- A13_CPREG_DEF(ARM64_REG_LSU_ERR_STS, 3, 3, 15, 0, 0, PL1_RW, 0), | |
+ A13_CPREG_DEF(ARM64_REG_LSU_ERR_STS, 3, 3, 15, 0, 0, PL1_RW, 0), // A14 SYS_LSU_ERR_STS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/hw/arm/apple_a13.c b/hw/arm/apple_a13.c | |
index 2188683992..928ffaa988 100644 | |
--- a/hw/arm/apple_a13.c | |
+++ b/hw/arm/apple_a13.c | |
@@ -504,14 +504,16 @@ static const ARMCPRegInfo apple_a13_cp_reginfo_tcg[] = { | |
A13_CPREG_DEF(ARM64_REG_HID13, 3, 0, 15, 14, 0, PL1_RW, 0), | |
A13_CPREG_DEF(ARM64_REG_HID14, 3, 0, 15, 15, 0, PL1_RW, 0), | |
A13_CPREG_DEF(ARM64_REG_HID16, 3, 0, 15, 15, 2, PL1_RW, 0), | |
- A13_CPREG_DEF(ARM64_REG_LSU_ERR_STS, 3, 3, 15, 0, 0, PL1_RW, 0), | |
+ A13_CPREG_DEF(ARM64_REG_LSU_ERR_STS, 3, 3, 15, 0, 0, PL1_RW, 0), // A14 SYS_LSU_ERR_STS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// clang-format off | |
// clang++ -Wall -Wextra -Wno-deprecated-declarations -g -fobjc-arc -std=gnu++2b -framework Foundation -framework CommonCrypto -framework Security -o secstuff secstuff.mm && ./secstuff ./iPhoneCA.pem ./DeveloperDiskImage.dmg ./DeveloperDiskImage.dmg | |
// xcrun --sdk iphoneos clang++ -miphoneos-version-min=14.0 -Wall -Wextra -Wno-deprecated-declarations -g -fobjc-arc -std=gnu++2b -framework Foundation -framework CommonCrypto -framework Security -Wl,-adhoc_codesign -o secstuff-ios secstuff.mm | |
// clang-format on | |
#define SEC_OS_IPHONE 1 | |
#undef NDEBUG | |
#include <CommonCrypto/CommonDigest.h> | |
#import <Foundation/Foundation.h> | |
#import <Security/Security.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Also see https://github.com/zhuowei/CoreTrustDemo/blob/main/littlemis.txt for my previous notes | |
first time X509ChainCheckPathWithOptions, param3 (options) is null | |
second time X509ChainCheckPathWithOptions, param3 (options) is set | |
-> This is the call out of CTEvaluateAMFICodeSignatureCMS_MaxDigestType, and is the one that sets the flags | |
struct ContentInfoSignedData { | |
int always4; // 0x0 | |
void* someBufferFromCTParseContentInfoSignedDataArg6; // 0x8 | |
// ? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Copyright (C) 2023 Daniel Levi | |
* | |
* Originally based on Apple's header for WebKit. The file within this repo | |
* named LICENSE_APPLE contains the copyright notice provided by Apple | |
* | |
* This header is based on my own disassembly of libMobileGestalt and contains | |
* 760 keys that should support any iOS version up until iOS 17. | |
* | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@import Darwin; | |
@import Foundation; | |
@import MachO; | |
#import <mach-o/fixup-chains.h> | |
// you'll need helpers.m from Ian Beer's write_no_write and vm_unaligned_copy_switch_race.m from | |
// WDBFontOverwrite | |
// Also, set an NSAppleMusicUsageDescription in Info.plist (can be anything) | |
// Please don't call this code on iOS 14 or below | |
// (This temporarily overwrites tccd, and on iOS 14 and above changes do not revert on reboot) |
NewerOlder