#asahi-re · 2026-06-03 21:24
StanfordAppliedCyber[m]first available physical address#asahi-re · 2026-06-03 21:24
chaos_princesswhat is a "first_avail_phys"?#asahi-re · 2026-06-03 21:23
StanfordAppliedCyber[m]some of the fields are first_avail_phys, sk_bootstrapped and cpu_stack_papt_start#asahi-re · 2026-05-13 16:10
amarioguyi found it strangely quite beneficial actually to learn like that tbh, because it made sure my mental model was closer to how hardware actually operates, rather than having to dig through many abstractions#asahi-re · 2026-05-13 16:09
amarioguyhabiby: don't worry, i'm the same, i learned how to reverse engineer before i could forward engineer :P#asahi-re · 2026-05-13 15:24
habibyarguable the worst way i could have done it, but it worked in the end#asahi-re · 2026-05-13 15:21
habibythats really cool, when the only lang i knew was python i downloaded ghidra and started throwing random programs at it untill things made sense. i learned both C and basic assembly from ghidra#asahi-re · 2026-05-13 15:18
nickchanhabiby: checkra1n ios15 wasn't coming out but i want to jailbreak iphone x so i download ghidra from github and disassembled xnu and amfi patched some stuff without really knowing what im doing and repeat until it worked#asahi-re · 2026-05-13 15:07
habibyanyhow, what did yall do to learn re?#asahi-re · 2026-05-13 15:06
habiby... i just spent 30 minutes in dependency hell to get mpd to work again#asahi-re · 2026-05-13 15:05
nickchanto see if it holds a very specific value during bootup if so corrupt that register to a usable sp and restore the specifc value when im done#asahi-re · 2026-05-13 15:05
nickchanwell ""solution""#asahi-re · 2026-05-13 15:04
nickchanand my solution is to check a register for a very specific value through 64 tbz/tbnz chain#asahi-re · 2026-05-13 15:04
nickchanthere's also the issue that around when xnu is going to enable mmu xnu doesn't have a usable sp but I need to save state#asahi-re · 2026-05-13 14:57
svenyeah, xnu is especially painful :D#asahi-re · 2026-05-13 14:57
nickchan (unfortunately patching pmap_enter is not sufficient to trace things properly)#asahi-re · 2026-05-13 14:57
nickchani would rather do shadow paging to trace things in same el then to disassemble xnu and pretend i know iokit#asahi-re · 2026-05-13 14:55
svennah, as mentioned early: there's just not that much disassembling required anyway#asahi-re · 2026-05-13 14:38
habibybut if i do end up obtaining a licens through work i wanted to know if there was a precident for it#asahi-re · 2026-05-13 14:37
habibyi had afeeling#asahi-re · 2026-05-13 14:37
svencracking anything is certainly unwanted here#asahi-re · 2026-05-13 14:37
habibycant use it in a profesional environment but it serves my needs#asahi-re · 2026-05-13 14:36
habibyi like ida for the plugins and the fact that cracking ida9.x is brutally easy now#asahi-re · 2026-05-13 14:36
sventhat's what.. 6? 7? years ago now#asahi-re · 2026-05-13 14:35
sveni don't think i ever used ida since ghidra was released tbh#asahi-re · 2026-05-13 14:35
chaos_princessEdit -> Options for '$whatever' -> Specification Extensions#asahi-re · 2026-05-13 14:34
nickchansome IDA register names has always feel a bit sus#asahi-re · 2026-05-13 14:34
sveni've just switched over to ghidra completely since I couldn't justify the cost of a IDA license with decompilers. it's not unwanted#asahi-re · 2026-05-13 14:34
nickchanchaos_princess: erm where is that file supposed to go#asahi-re · 2026-05-13 14:33
habibydoes anyone use ida for this or is that uncharted and unwanted waters?#asahi-re · 2026-05-13 14:33
habibythats swag#asahi-re · 2026-05-13 14:31
chaos_princesshttps://pastebin.com/6dPHjswF - adjust as needed#asahi-re · 2026-05-13 14:29
nickchanso anything that use varargs is just broken#asahi-re · 2026-05-13 14:29
nickchandisassembling apple bins in ghidra kind of suck though it doesn't even support the call convention properly#asahi-re · 2026-05-13 09:58
chadmedthe only useful thing i got out of putting the dcp fw in ghidra was confirmation on the meaning of some enums, because there are a couple of debug print functions that just switch on the enum value and then print what it means :P#asahi-re · 2026-05-13 09:56
chadmedprobably wouldnt have figured that one out by trying to disassemble 9 mib of nonsense obj-c/c++ code with vtables that go nowhere and 3 (?) different abstraction frameworks#asahi-re · 2026-05-13 09:55
chadmedanother example, macos never ever uses more than two display controller planes because old versions of dcp (m1 and previous) only support two. in linux we can simply detect which dcp{,ext} version we have and expose the real number of surfaces to kms which lets compositors do more cool things that macos cant#asahi-re · 2026-05-13 09:52
svensimple example, but blindly copying what macOS does which is tempting when disassembling would be weird there #asahi-re · 2026-05-13 09:52
svene.g. for nvme macOS creates two copies of the pages it needs to r/w but in Linux we can just point both hw regs to the same tables #asahi-re · 2026-05-13 09:51
svenbecause the hw is sometimes driven in macOS specific ways #asahi-re · 2026-05-13 09:50
svenand understanding what something does from tracing or testing sometimes even results in better drivers in the end #asahi-re · 2026-05-13 09:50
svenYeah, we’re just being as careful as possible here. You can do disassembly and still write code that’s effectively cleanroom but why take that risk when it’s just not necessary?#asahi-re · 2026-05-13 08:58
StanfordAppliedCyber[m]thank you for the clarification there#asahi-re · 2026-05-13 08:57
chaos_princessthe policy is that the result should mainly come from tracing, with disasm being used to, like, confirm the last 5%#asahi-re · 2026-05-13 08:57
StanfordAppliedCyber[m]i'm asking because i'm not experienced with RE and want clear guidance on policy, not because i'm foaming at the mouth to disassemble something#asahi-re · 2026-05-13 08:52
chaos_princess(this is not an endorsement of the "just feed kexts to ghidra" approach btw)#asahi-re · 2026-05-13 08:51
sventhat too #asahi-re · 2026-05-13 08:49
chaos_princesskexts at least have symbols#asahi-re · 2026-05-13 08:49
chaos_princessfw blobs also tend to be less useful than you might think#asahi-re · 2026-05-13 08:48
sventhat’s maybe overly cautious but as it turns out disassembling blobs usually isn’t required because tracing is to much faster