#asahi-re · 2021-01-31 05:12
amwYep - your right and otool shows Intel instructions#asahi-re · 2021-01-31 05:10
amwI don't know how to tell which file is actually running on a Mac - no /proc on Macs :-(#asahi-re · 2021-01-31 05:10
amwdavidrysk: ok - There is a third file 16M long called plain "kernel" ?#asahi-re · 2021-01-31 04:51
amwBut my MBA is an M1 based one?#asahi-re · 2021-01-31 04:51
amwThat's interesting as my MacBookAir has only t8101 and t8020 files in the /System/Library/Kernels#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: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 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 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 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 07:56
amwmarcan: thanks#asahi-re · 2021-01-29 07:55
amwok - that looks pretty scary#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
amwok - prepend the page with "What ever you discover from this is restricted as per RE page"?#asahi-re · 2021-01-29 07:42
amwShouldn't it go in / under the RE area?#asahi-re · 2021-01-29 07:41
amwstuff thats perhaps off/wrong/ too much#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:39
amwok - I haven't found that on my macbook air so far.#asahi-re · 2021-01-29 07:38
amwIs this stuff worth documenting/capturing?#asahi-re · 2021-01-29 07:38
amwmarcan: Is the kernelcache.macho file uploaded? or Should I make my own some how?#asahi-re · 2021-01-29 07:37
amwThis was then dumped out with: aarch64-linux-gnu-objdump -D -b binary -a aarch64 -m aarch64 init.bin#asahi-re · 2021-01-29 07:35
amwWhere the 0xc04 was computed from the macho header format.#asahi-re · 2021-01-29 07:35
amwmarcan: Then it was dd if=kernelcache.macho bs=4k skip=$((0xc04)) count=16 of=init.bin#asahi-re · 2021-01-29 07:35
amwmarcan: The script I was refering to was used as: python machodump.py kernelcache.macho#asahi-re · 2021-01-29 07:34
amwmarcan: Sorry I was confused - you actually objdump a kernelcache#asahi-re · 2021-01-29 06:04
amwI thought you actually worked from the iBoot file off disk?#asahi-re · 2021-01-29 06:00
amwmarcan: I was wondering if the python script you used to dump the iBoot header at 3:46:00 in the last live stream was available some where?