opa334 / ChOma

C library for manipulating MachO/FAT files and their code signatures
MIT License
337 stars 41 forks source link

ct_bypass failed to get slice for arm64e #10

Closed Toilettrauma closed 11 months ago

Toilettrauma commented 11 months ago

Hi everyone! I compiled ct_bypass for arm64e, but when i'm trying to bypass it prints:

CoreTrust bypass eta s0n!!
Found 1 MachO slice.
File size 0x2131e0 bytes, MachO slice count 1.
Error: failed to find a valid, preferred macho.
Error: failed to extract preferred slice!

It checks cpusubtype as 0x80000002 and cannot find slice. I checked macho with otool and it prints:

ct_bypass_arm64e:
Mach header
      magic  cputype cpusubtype  caps    filetype ncmds sizeofcmds      flags
 0xfeedfacf 16777228          2  0x80           2    20       1968 0x00200085
Halo-Michael commented 11 months ago

Why close this issues? I guess it's still happen? 5E418133-FD04-4B50-9259-4DD9DAA201DB

Halo-Michael commented 10 months ago

Why close this issues? I guess it's still happen? 5E418133-FD04-4B50-9259-4DD9DAA201DB

Update: Really fixed in https://github.com/opa334/ChOma/commit/5d923d0fb742cca72dfcfcc820d1a1d55edcd67a. 3E76BCE0-EB0B-47B9-BC95-9FB7126BCF53