#
✕ nick:Shiz
#asahi-re · 2021-01-11 18:31
Shizi guess it is, then? but all the files inside are individual seemingly-proper mach-O files
#asahi-re · 2021-01-11 18:31
Shizyeah, i do see that
#asahi-re · 2021-01-11 18:29
Shiz(from the top of my head)
#asahi-re · 2021-01-11 18:29
Shizthe kernelcache extracted from the preboot partition at $vuid/boot/$policy/System/Caches/com.apple.kernelcache/kernelcache
#asahi-re · 2021-01-11 18:28
Shizyeah, this is not prelinked
#asahi-re · 2021-01-11 18:27
Shizsure
#asahi-re · 2021-01-11 18:27
Shizthe sizes all add up to me, i think it's inside the fileset
#asahi-re · 2021-01-11 18:27
Shiz-rw-r--r-- 1 partynorge staff 85M 11 Jan 19:24 com.apple.kernel
#asahi-re · 2021-01-11 18:26
Shizhum
#asahi-re · 2021-01-11 18:26
Shizand it has a com.apple.kernel, which is a mach-o executable
#asahi-re · 2021-01-11 18:25
Shizi just extracted the kernelcache
#asahi-re · 2021-01-11 18:25
Shizwell
#asahi-re · 2021-01-11 18:25
Shizspecial type of mach-O file
#asahi-re · 2021-01-11 18:25
Shizit's just a container with a bunch of inner mach-Os
#asahi-re · 2021-01-11 18:25
Shizyeah, the kernelcache is a fileset
#asahi-re · 2021-01-11 18:19
Shizmarcan: did you extract the kernel from the fileset? :p
#asahi-re · 2021-01-11 17:38
Shizsounds familiar
#asahi-re · 2021-01-11 17:23
Shizoh yay, mach-o filesets
#asahi-re · 2021-01-11 17:21
Shizprobably yea
#asahi-re · 2021-01-11 17:17
Shizit doesn't like LC_FILESET_ENTRY (0x35)
#asahi-re · 2021-01-11 17:16
Shizdoesn't matter anyway, because it segfaults on the kernel :)
#asahi-re · 2021-01-11 17:15
Shizno source sadly
#asahi-re · 2021-01-11 17:15
Shizyep
#asahi-re · 2021-01-11 17:14
Shizapparently this can dump kernelcaches
#asahi-re · 2021-01-11 17:14
Shizhttp://newosxbook.com/tools/jtool.html
#asahi-re · 2021-01-11 17:14
Shizanyway
#asahi-re · 2021-01-11 17:14
Shizthe kernelcache extracted from the img4, trying on m1 now
#asahi-re · 2021-01-11 17:13
Shizmight be my local macOS version which is outdated
#asahi-re · 2021-01-11 17:13
Shiz davidrysk[m] otool doesn't even recognize it as an object file :)
#asahi-re · 2021-01-11 17:09
Shizah, LC_DYLD_CHAINED_FIXUPS
#asahi-re · 2021-01-11 17:07
Shizooh :)
#asahi-re · 2021-01-11 17:07
Shizgobjdump: kc: unknown load command 0x34
#asahi-re · 2021-01-11 17:04
Shizmarcan: fwiw, libkern/kxld/kxld_object.c in xnu sources may be relevant
#asahi-re · 2021-01-11 17:03
Shiz(presumably)
#asahi-re · 2021-01-11 17:03
Shizkc being... kernelcache
#asahi-re · 2021-01-11 17:03
Shizidk, but bputil's policy stuff seems to refer to it as kcOS :p
#asahi-re · 2021-01-11 17:01
Shizdavidrysk[m]: kmutil also uses kernelcache at other points iirc
#asahi-re · 2021-01-11 16:44
Shizmach-O ain't fun
#asahi-re · 2021-01-11 16:44
Shizyikes
#asahi-re · 2021-01-10 00:50
Shizpushed
#asahi-re · 2021-01-10 00:40
Shizfeel free to add any appropriate https://github.com/Shizmob/img4/blob/master/dt.py#L25
#asahi-re · 2021-01-10 00:38
Shizalso in git now
#asahi-re · 2021-01-10 00:36
Shizstring lists parsed
#asahi-re · 2021-01-10 00:36
Shizhttps://txt.shiz.me/MzQ1ZDVkNm.txt
#asahi-re · 2021-01-10 00:35
Shizyep, already on that
#asahi-re · 2021-01-10 00:28
Shizhttps://txt.shiz.me/MmUwMTRmND.txt is faster
#asahi-re · 2021-01-10 00:27
Shizfixed output to at least print strings where appropriate according to heuristics
#asahi-re · 2021-01-10 00:27
Shizhttps://txt.shiz.me/MmUwMTRmND
#asahi-re · 2021-01-10 00:16
Shizhttps://txt.shiz.me/NDIxNWI5MW parser output (note that all values are bytes and i am lazy)
#asahi-re · 2021-01-10 00:15
Shizhere it is, although it seems i got ninja'd :p

plus ›