#
#asahi · 2022-08-01 05:22
marcanon m1 you can just afford to wake the damn CPU up
#asahi · 2022-08-01 05:22
nicolas17on some Macs, it wakes periodically to 'refresh' the sleep proxy registration
#asahi · 2022-08-01 05:22
marcanthey probably implemented that in the intel days
#asahi · 2022-08-01 05:22
marcannot sure if we'll ever play the layering violation game needed to pull that off on linux, but I'm not sure if it matters anyway
#asahi · 2022-08-01 05:22
nicolas17yes, that's the thing I remembered when chadmed mentioned powernap
#asahi · 2022-08-01 05:21
marcanso it can just do it itself, while the CPU is off
#asahi · 2022-08-01 05:21
marcannicolas17: the WLAN firmware on these macs has mDNS support (and ARP and ICMP I think)
#asahi · 2022-08-01 05:21
nicolas17the Mac wakes and takes its IP back and responds
#asahi · 2022-08-01 05:20
chadmedlike the obvious thing is a USB printer shared from a Mac that is currently asleep but like... just dont do that?
#asahi · 2022-08-01 05:20
nicolas17then when you try to actually connect to the SMB server, the Apple TV sends a wake-on-LAN packet to the Mac
#asahi · 2022-08-01 05:20
chadmeda neat trick but i cant imagine there being too many uses for something like that unless you have a really really poorly designed home network
#asahi · 2022-08-01 05:20
nicolas17so you send a mDNS query asking for SMB servers, and the Apple TV pretends to be the Mac (including the original IP address) and replies "yes hi I'm a Mac and I'm running SMB"
#asahi · 2022-08-01 05:19
nicolas17there's something called "sleep proxy" where a Mac, when going to sleep, can delegate advertising of its mDNS services to another device in the LAN (such as another Mac, or an Apple TV)
#asahi · 2022-08-01 05:18
nicolas17chadmed: speaking of powernap, I remembered an interesting mDNS feature on Macs...
#asahi · 2022-08-01 05:15
nicolas17at least that's my theory for why once in a while I would randomly find it awake in the morning or out of my bag
#asahi · 2022-08-01 05:15
marcanif anyone is bored enough, have fun :-) (that's a crackme)
#asahi · 2022-08-01 05:15
marcancommand code is 0x1300
#asahi · 2022-08-01 05:15
marcanactually, I guess I should post the Euskal Encounter Hack It level #5: https://mrcn.st/t/hackit2022-5-m1n1.bin.gz
#asahi · 2022-08-01 05:15
marcanthat's bad
#asahi · 2022-08-01 05:15
marcanuh
#asahi · 2022-08-01 05:15
nicolas17and I suspect it had a bug where the "auto wake to do hibernation" would sometimes leave it awake instead
#asahi · 2022-08-01 05:15
marcanI thought firmware-level hibernation was only a thing in the bad old APM days
#asahi · 2022-08-01 05:14
marcanoh, that's weird.
#asahi · 2022-08-01 05:14
nicolas17and when waking from that, the firmware would load stuff from SSD back into RAM, and then Linux would think it woke from *sleep*
#asahi · 2022-08-01 05:14
marcanah yeah, that's common
#asahi · 2022-08-01 05:13
nicolas17marcan: I think that lenovo had some stupid feature where if the battery went below X, it would wake and do some sort of firmware-level hibernation
#asahi · 2022-08-01 05:13
chadmednicolas17: idk i assume its the same as wiiconnect24
#asahi · 2022-08-01 05:13
marcane.g. right now I think we only really wake up on power button/lid open for the s2idle mode
#asahi · 2022-08-01 05:12
marcanso it's a lot easier to make them not happen unless they should
#asahi · 2022-08-01 05:12
marcanthe "nice" thing about s2idle is that it isn't really sleep, which means wakeups are entirely up to the kernel anyway
#asahi · 2022-08-01 05:12
nicolas17how does powernap even work? does it keep fans off when it wakes for that?
#asahi · 2022-08-01 05:12
chadmedyeah if you turn off powernap or whatever they call it its even better
#asahi · 2022-08-01 05:11
marcanI left an MBP sleeping before going on vacation, >2 weeks later when I came back it was still alive at 1% battery
#asahi · 2022-08-01 05:11
marcanMacs have fairly impressive sleep time, and I'm convinced it's worse than it should be due to macOS doing stupid stuff
#asahi · 2022-08-01 05:11
nicolas17I once took it out of my bag hot and with the battery nearly drained due to that issue :/
#asahi · 2022-08-01 05:10
nicolas17I had a Lenovo laptop that would sometimes spuriously wake up
#asahi · 2022-08-01 05:10
nicolas17reads backlog
#asahi · 2022-08-01 05:10
marcan(I've written a bunch even)
#asahi · 2022-08-01 05:09
marcanbut there are plenty of CTF challenges / crackmes that are the exact same thing but perfectly legal to do :)
#asahi · 2022-08-01 05:09
marcanyeah, the technical aspect has some similarities, I just don't want to promote what ultimately is copyright infringement (even if just for a "closed beta" deal), so just avoid that subject here
#asahi · 2022-08-01 05:08
bluetailYea. I'll dig into that
#asahi · 2022-08-01 05:08
bluetailThanks
#asahi · 2022-08-01 05:08
bluetailsorry. I'm just intrigued enough to try those things to understand it more. It's kind of like; It's not broken, I'll repair it anyways kinda mindset. Wasn't that something you wrote :D
#asahi · 2022-08-01 05:08
marcanmost of what we work on is closer to the embedded development angle, i.e. the arduino -> general microcontroller development -> driver development kind of pipeline, I'd say
#asahi · 2022-08-01 05:07
marcankind of, though not exactly what we do here (and also, not a very appropriate subject tbh)
#asahi · 2022-08-01 05:07
bluetaildoes cracking count? Yesterday I used x64dbg to crack a free software which required a key cause its a closed-beta
#asahi · 2022-08-01 05:06
mini0npractice makes perfect
#asahi · 2022-08-01 05:06
marcanhack a lot on stuff :)
#asahi · 2022-08-01 05:06
bluetailAny tip on becoming as knowledgable as you guys are? It's so cool. I'm still light-years away from it.
#asahi · 2022-08-01 05:04
marcanso I guess my things to work on the next few weeks are: 1. u-boot MTP support, 2. USB xHCI firmware loading, 3. WiFi shenanigans (tracer, make sleep work, fix AP mode, btcoex), 4. s2idle (mostly just testing after WiFi works), 5. PSCI

plus ›