#asahi-re · 2021-01-31 04:46
Jan[m]1don't know if that makes a difference though#asahi-re · 2021-01-31 04:45
Jan[m]1it may be not for MBA but mini A12#asahi-re · 2021-01-31 04:43
amwJan: I guess that's the hardware davidrysk was saying the .t8020 which I used in my example on the wiki#asahi-re · 2021-01-31 04:39
Jan[m]1uploaded an image: image.png (114KiB) < https://matrix.org/_matrix/media/r0/download/matrix.org/yGWciipIEuBdCSRoGhMvVRbT/image.png >#asahi-re · 2021-01-31 04:38
amwI presume that dtk means = "development transition kit" binary - I didn't even know they shipped multiple kernels on the MacBookAir#asahi-re · 2021-01-31 04:36
amwdavidrysk: Thanks - that's much easier and allows me to verify my decode#asahi-re · 2021-01-31 03:38
davidrysk[m]amw: note that t8020 is for the DTK and t8101 is for the M1 Mac. Also you can use otool -xV if you have the Apple cctools#asahi-re · 2021-01-31 02:32
amwI just guessed the offset into the file used based on how you choose your offset :-)#asahi-re · 2021-01-31 02:31
amwmarcan: Just added some documentation to the RE page on extracting from the kernel.release.t8020 file - please check if ok#asahi-re · 2021-01-31 00:39
amwNow the machodump.py script runs fine... - The standard debian packages don't work and the git clone didn't seem to either...#asahi-re · 2021-01-31 00:38
amwroxfan: Thanks - uninstalling the debian python3-construct and using pip3 install construct worked#asahi-re · 2021-01-30 16:55
roxfanlatest from pip (2.10.58) seems to work fine#asahi-re · 2021-01-30 16:55
roxfanamw: what's your construct version?#asahi-re · 2021-01-30 07:05
amwget the same error on python3#asahi-re · 2021-01-30 06:28
amwDoes machodump.py want python3?#asahi-re · 2021-01-30 06:28
amwAttributeError: 'Renamed' object has no attribute 'THREAD64'#asahi-re · 2021-01-30 06:27
amwTrying machodump.py as mentioned on RE:kernelcache wiki and getting error:#asahi-re · 2021-01-29 21:37
davidrysk[m]but I'm not 100% sure#asahi-re · 2021-01-29 21:37
davidrysk[m]roxfan: I think so#asahi-re · 2021-01-29 21:13
roxfanmain kernel is probably self-contained so can be analyzed separately#asahi-re · 2021-01-29 20:44
Shiz there's also another mach-o dumper in my img4 repo, i was thinking of expanding it to pseudo-extract drivers#asahi-re · 2021-01-29 19:50
roxfanso they use aux kc like on intel?#asahi-re · 2021-01-29 19:32
davidrysk[m]kexts you can just get from /S/L/E#asahi-re · 2021-01-29 19:31
davidrysk[m]also note that Apple has significantly increased the level of link-time optimization and inlining that they do on the Apple Silicon kernels. You will not find many symbols in them.#asahi-re · 2021-01-29 19:31
davidrysk[m]marcan, amw: you don't need to extract the kernelcache, you can just go at /System/Library/Kernels/kernel.release.t8101#asahi-re · 2021-01-29 08:13
marcanfair enough, just keep in mind this might complicate things if you ever do decide to contribute to any kernel code#asahi-re · 2021-01-29 08:05
amwI don't think there is any need for anything from me.#asahi-re · 2021-01-29 08:04
amwI am thinking of just getting the tools ready and proving I dump / decode the files - but not submitting any code.#asahi-re · 2021-01-29 08:00
marcanamw: so if I may ask, what are you planning to do? :)#asahi-re · 2021-01-29 07:57
marcanit's supposed to be scary#asahi-re · 2021-01-29 07:56
amwmarcan: thanks#asahi-re · 2021-01-29 07:55
amwok - that looks pretty scary#asahi-re · 2021-01-29 07:53
marcanhowever, Apple-proprietary kexts are included, and those we do not get the source for#asahi-re · 2021-01-29 07:53
marcanonce M1 support is open sourced, there will be no reason to disassemble the core of the kernelcache, ever#asahi-re · 2021-01-29 07:53
marcanhttps://github.com/AsahiLinux/docs/wiki/RE:Kernelcache#asahi-re · 2021-01-29 07:52
amwPerhaps one day the kernelcache generated from the opensource xnu code drop would be easier to use#asahi-re · 2021-01-29 07:46
amwSure, I was just trying to follow along and summarise what I learnt - no urgency#asahi-re · 2021-01-29 07:45
marcanlet me just write this up real quick#asahi-re · 2021-01-29 07:45
amwok - prepend the page with "What ever you discover from this is restricted as per RE page"?#asahi-re · 2021-01-29 07:43
marcanI mean it can go in the docs wiki, but we need to make sure people understand this#asahi-re · 2021-01-29 07:42
marcanbecause unless you will never contribute to Asahi or any related open source project, you should not start throwing things in a disassembler without carefully reading that and understanding the implications#asahi-re · 2021-01-29 07:42
amwShouldn't it go in / under the RE area?#asahi-re · 2021-01-29 07:42
marcanwell, if we have a page about this, we need a big disclaimer at the top telling people to go read our policy first#asahi-re · 2021-01-29 07:41
amwstuff thats perhaps off/wrong/ too much#asahi-re · 2021-01-29 07:41
marcanhttps://gist.github.com/marcan/e1808a2f4a5e1fc562357550a770afb1 machodump.py#asahi-re · 2021-01-29 07:41
amwI can try to get this working and document and you could trim out#asahi-re · 2021-01-29 07:40
marcanbut IRC is fine so: get https://github.com/tihmstar/img4tool, img4tool -a kernelcache -e -p kernelcache.im4p -m kernelcache.im4m; img4tool kernelcache.im4p -e -o kernelcache.macho#asahi-re · 2021-01-29 07:40
marcanI kind of fear that if we just give people a step by step tutorial on how to extract the kernelcache, that will just result in randoms disassembling things and trying to contribute (make sure you read alx.sh/re)