#asahi-re · 2021-01-09 19:11
Shizin dyld.h and dyld_priv.h#asahi-re · 2021-01-09 19:11
Shizan easy hack is to #undefine __API_{UN,}AVAILABLE and #define it to a no-op#asahi-re · 2021-01-09 19:11
davidrysk[m]a lot of this stuff depends on other crap that's also on opensource.apple.com but building it correctly is a huge mess#asahi-re · 2021-01-09 19:10
davidrysk[m]but maybe you had a better fix#asahi-re · 2021-01-09 19:10
davidrysk[m]I can patch it out of dyld.h :)#asahi-re · 2021-01-09 19:10
ShizI forgot that this was more hacky than I remember#asahi-re · 2021-01-09 19:10
Shizoh yeah, shit#asahi-re · 2021-01-09 19:09
davidrysk[m]Shiz: I run into issues with the availability macros#asahi-re · 2021-01-09 19:04
davidrysk[m]lots of interesting stuff here btw: http://siguza.github.io#asahi-re · 2021-01-09 19:03
davidrysk[m]yep :)#asahi-re · 2021-01-09 19:03
Shizit has an -extract flag :)#asahi-re · 2021-01-09 19:03
Shizjust build the dyld_shared_cache_util target#asahi-re · 2021-01-09 19:02
Shizdavidrysk[m]: https://github.com/Shizmob/dyld#asahi-re · 2021-01-09 18:56
davidrysk[m]> Older chips attempt to do this via a monitor program loaded in EL3, which is inherently flawed and bypassable though as detailed in “Tick Tock” by xerub.#asahi-re · 2021-01-09 18:56
davidrysk[m]> This post tries to detail the mechanism used in Apple’s A10 chips and later to prevent modification of an iOS kernel at runtime.#asahi-re · 2021-01-09 18:56
davidrysk[m]http://siguza.github.io/KTRR/#asahi-re · 2021-01-09 18:55
davidrysk[m]I was reading about Memory Protection Keys for Userspace for x86_64 some time ago and it seems horrible compared to what Apple is doing#asahi-re · 2021-01-09 18:54
Shizhaha#asahi-re · 2021-01-09 18:54
marcanit's in man bputil#asahi-re · 2021-01-09 18:54
marcanah I didn't#asahi-re · 2021-01-09 18:54
marcanI might have made that up :D#asahi-re · 2021-01-09 18:54
marcanor maybe not#asahi-re · 2021-01-09 18:54
Shizupdates the boot page#asahi-re · 2021-01-09 18:54
Shizah, configurable#asahi-re · 2021-01-09 18:54
marcanShiz: Configurable Text Readonly Region#asahi-re · 2021-01-09 18:53
Shizone sec#asahi-re · 2021-01-09 18:51
davidrysk[m]yeah idc#asahi-re · 2021-01-09 18:51
Shiz:p#asahi-re · 2021-01-09 18:51
Shizyeah, but beware it's just as much as a hackjob as the one it's replacing#asahi-re · 2021-01-09 18:51
davidrysk[m]I was gonna fix it up myself but I'd rather not duplicate work, hah#asahi-re · 2021-01-09 18:50
davidrysk[m]Shiz: can you put your fixed-up dyld_shared_cache extractor somewhere?#asahi-re · 2021-01-09 18:50
Shizalmost like it was compiled in debug mode :p#asahi-re · 2021-01-09 18:50
Shizdavidrysk[m]: re:string, libbootpolicy.dylib is *extremely* verbose#asahi-re · 2021-01-09 18:49
Shizdid we have a confirmation on what CTRR stood for?#asahi-re · 2021-01-09 18:43
davidrysk[m]xnu-7195.50.7.100.1/osfmk/arm64/machine_routines_asm.s has a monitor_call() function, but the monitor-side code seems to have been removed from the xnu src#asahi-re · 2021-01-09 18:43
davidrysk[m]huh, looking more closely at xnu src it does seem that they used EL3 for the xnu monitor in the older chips, and then did CTRR and later KTRR to eliminate the need for EL3#asahi-re · 2021-01-09 13:11
davidrysk[m]I find it more useful to e.g. run `strings` on things at this point#asahi-re · 2021-01-09 12:32
marcanobviously, it would contain iBoot#asahi-re · 2021-01-09 12:31
Necrosporusmarcan, is posting say NOR dump illegal?#asahi-re · 2021-01-09 11:47
marcan:)#asahi-re · 2021-01-09 11:46
brinlyheh, will check back at end of January and see how it’s going :)#asahi-re · 2021-01-09 11:04
marcanit's worth not throwing things into a disassembler until we *know* we need to#asahi-re · 2021-01-09 11:04
marcannot at the moment, first thing I'm going to look at is the kernel itself just to make sure I understand the entrypoint, and after that I want to get the mini thing up and running so we can dump registers/etc#asahi-re · 2021-01-09 11:01
brinlyis there any .kexts that are high priority to make notes @marcan ?#asahi-re · 2021-01-09 05:35
Shizso iBoot.img4 seems encrypted or at least not immediately readable#asahi-re · 2021-01-09 05:32
artemistIf you want boot options then mini either needs to parse extlinux.conf (a complete pain) or you need u-boot#asahi-re · 2021-01-09 05:30
marcan(the first stage)#asahi-re · 2021-01-09 05:30
artemistIIRC there are some NICs that flat out use Linux in their option ROM#asahi-re · 2021-01-09 05:30
marcandavidrysk[m]: iBoot is in the NOR#asahi-re · 2021-01-09 05:29
marcanShiz: ha