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 python3 | |
# | |
# sep_firmware_split.py | |
# Brandon Azad | |
# | |
# Split a decrypted Apple SEP firmware image into individual Mach-O files. | |
# | |
# iPhone11,8 17C5053a https://twitter.com/s1guza/status/1203550760102969345 | |
# iPhone11,8 17E255 https://twitter.com/s1guza/status/1244683851957522435 | |
# |
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/Makefile b/Makefile | |
index 96e99b7..4884309 100644 | |
--- a/Makefile | |
+++ b/Makefile | |
@@ -43,6 +43,10 @@ arm64: | |
gobjcopy -O binary -j .text bin/checkm8_arm64.o bin/checkm8_arm64.bin | |
rm bin/checkm8_arm64.o | |
+ xcrun -sdk iphoneos clang src/checkm8_nopaddingcorruption_arm64.S -target arm64-apple-darwin -Wall -o bin/checkm8_nopaddingcorruption_arm64.o | |
+ gobjcopy -O binary -j .text bin/checkm8_nopaddingcorruption_arm64.o bin/checkm8_nopaddingcorruption_arm64.bin |