#
✕ nick:davidrysk[m]
#asahi · 2021-01-07 20:35
davidrysk[m]still getting connection reset though!!
#asahi · 2021-01-07 20:34
davidrysk[m]there's another issue though, you need to place hostkeys on the system
#asahi · 2021-01-07 20:33
davidrysk[m]just add an alias in it, duplicate the line for _sshd with sshd and use the same uid/gid :P
#asahi · 2021-01-07 20:33
davidrysk[m]the manpage for passwd(5) tells us that
#asahi · 2021-01-07 20:33
davidrysk[m]found the problem, you need to edit /etc/master.passwd, not /etc/passwd
#asahi · 2021-01-07 20:18
davidrysk[m]awordnot: I see that that project has not been updated for the dyld that was just released by Apple
#asahi · 2021-01-07 20:08
davidrysk[m]is there a good dyld_shared_cache extractor available?
#asahi · 2021-01-07 20:07
davidrysk[m]okay, next step is to pull the dyld_shared_cache off the recovery and see if it contains the needed functions
#asahi · 2021-01-07 18:08
davidrysk[m](meaning, one with a legit non-adhoc sig)
#asahi · 2021-01-07 18:08
davidrysk[m]I didn't test a third party apple developer signed program
#asahi · 2021-01-07 18:08
davidrysk[m]programs signed by apple from the root volume do still work
#asahi · 2021-01-07 18:04
davidrysk[m]Still, useful for testing
#asahi · 2021-01-07 18:04
davidrysk[m]marcan: yeah indeed on Intel you can run anything but on M1 they enforce code signing in recovery
#asahi · 2021-01-07 17:46
davidrysk[m]but I sure can test it :)
#asahi · 2021-01-07 17:46
davidrysk[m]I'm using the M1 as my primary so I wanted to avoid rebooting unnecessarily
#asahi · 2021-01-07 17:46
davidrysk[m]physical access is required to access 1TRR on M1.
#asahi · 2021-01-07 17:46
davidrysk[m]well, I didn't test running that binary on M1. I had better :)
#asahi · 2021-01-07 17:45
davidrysk[m]and that changes to recovery aren't persistent, so you can't install a persistent implant
#asahi · 2021-01-07 17:45
davidrysk[m]the point is that physical access is required to enter 1TRR
#asahi · 2021-01-07 17:45
davidrysk[m]well, I compiled a tester program on another computer, copied it to an external usb, plugged the usb into the machine in recovery, and it ran
#asahi · 2021-01-07 17:44
davidrysk[m]it's a ramdisk that's created on boot
#asahi · 2021-01-07 17:44
davidrysk[m]well, nothing in 1TRR is persistent
#asahi · 2021-01-07 17:43
davidrysk[m]even with SIP enabled
#asahi · 2021-01-07 17:42
davidrysk[m]marcan: programs that are ad-hoc signed on another computer just work
#asahi · 2021-01-07 17:39
davidrysk[m]marcan: it's probably an MSR
#asahi · 2021-01-07 17:20
davidrysk[m]yeah, it's being discussed in the -gpu channel
#asahi · 2021-01-07 16:53
davidrysk[m]but that's a low priority project :P
#asahi · 2021-01-07 16:53
davidrysk[m]that said I was experimenting with mcsema to see if it could be used to AOT-recompile an aarch64 binary to x86_64
#asahi · 2021-01-07 16:53
davidrysk[m]there are tools that make it easier, the problem is that to do everything you need a chroot with arm64 libs
#asahi · 2021-01-07 16:42
davidrysk[m]q3k|m: yes but that's only setting the flag and then the kernel sets the register
#asahi · 2021-01-07 16:41
davidrysk[m]will need to dig further
#asahi · 2021-01-07 16:39
davidrysk[m]wait, no, it implements a sysctl that sets the thread pointer contents
#asahi · 2021-01-07 16:38
davidrysk[m]that calls a sysctl though
#asahi · 2021-01-07 16:38
davidrysk[m]https://github.com/saagarjha/TSOEnabler
#asahi · 2021-01-07 16:37
davidrysk[m]someone already figured it out and wrote a kext that does it
#asahi · 2021-01-07 15:51
davidrysk[m]and I can see that both su and sudo don't work
#asahi · 2021-01-07 15:50
davidrysk[m]oh yeah useful tip, if you need to use CLI tools that are unavailable from recovery you may be able to mount a macOS volume and run them from there
#asahi · 2021-01-07 15:49
davidrysk[m]so let's see why it's failing
#asahi · 2021-01-07 15:49
davidrysk[m]marcan: so when sshd is unloaded by launchctl, I get connection refused (as expected), when it's loaded I get connection reset by peer (which is why I asked if that was what was expected)
#asahi · 2021-01-07 14:52
davidrysk[m]I joined late and will have to leave for a bit\
#asahi · 2021-01-07 14:44
davidrysk[m]ohhh this is the recovery image?
#asahi · 2021-01-07 14:37
davidrysk[m]marcan: https://sterlingit.com.au/how-to-create-a-user-or-admin-user-in-osx-apple-mac-via-terminal-commands-in-9-simple-steps/
#asahi · 2021-01-06 20:06
davidrysk[m]hm, and it's not in 11.2 beta either?
#asahi · 2021-01-06 20:04
davidrysk[m]I'd have to boot into 1TRR to test and see if configure-boot is present
#asahi · 2021-01-06 20:04
davidrysk[m]marcan: you use bputil to enable permissive security, then kmutil configure-boot to set it up
#asahi · 2021-01-06 20:04
davidrysk[m]@mar
#asahi · 2021-01-06 19:25
davidrysk[m]IIRC enough of this is implemented on 11.1 release
#asahi · 2021-01-06 19:25
davidrysk[m]the manpages for both utilities explain what needs to be done in 1TRR
#asahi · 2021-01-06 19:13
davidrysk[m]and then you use kmutil to tell the bootloader what file to run
#asahi · 2021-01-06 19:13
davidrysk[m]you set up the secureboot policy with bputil

plus ›