#
…

2022-11-09

00:06cylm_ has joined #asahi-re
00:10Dcow has quit [Remote host closed the connection]
00:12Dcow has joined #asahi-re
00:17Dcow has quit [Remote host closed the connection]
00:17Dcow has joined #asahi-re
00:47cylm has joined #asahi-re
00:47cylm_ has quit [Read error: Connection reset by peer]
01:58Dcow has quit [Remote host closed the connection]
02:45cylm_ has joined #asahi-re
02:51cylm has quit [Ping timeout: 480 seconds]
02:58cylm_ has quit [Quit: WeeChat 3.7.1]
03:04cylm has joined #asahi-re
03:22jole_ has joined #asahi-re
03:23jole has quit [Read error: Connection reset by peer]
03:24cylm has quit [Quit: WeeChat 3.7.1]
03:26cylm has joined #asahi-re
04:44millenialhacker has joined #asahi-re
05:10millenialhacker has quit [Quit: Konversation terminated!]
05:30TellowKrinkle has joined #asahi-re
05:38millenialhacker has joined #asahi-re
05:49millenialhacker has quit [Remote host closed the connection]
05:49millenialhacker has joined #asahi-re
06:11SSJ_GZ has joined #asahi-re
06:24cylm has quit [Quit: WeeChat 3.7.1]
06:31nicolas17 has quit [Quit: Konversation terminated!]
06:32millenialhacker has quit [Ping timeout: 480 seconds]
06:51millenialhacker has joined #asahi-re
07:02millenialhacker has quit [Ping timeout: 480 seconds]
07:22millenialhacker has joined #asahi-re
07:44millenialhacker has quit [Remote host closed the connection]
07:44millenialhacker has joined #asahi-re
08:09millenialhackerQuick question, I'm will RE ISP Co-processor firmware, but I have no idea where is located, I checked my EFI partition vendorfw folder, but it seems there we only have wifi/bt fw, am I right?
08:17millenialhackerat least that what I get by reading asahi installer.
08:24millenialhackerwell... I'm pulling the whole ipsw and will try to just extract it and see where the fw is located
08:26ChaosPrincessits in /System/Volumes/Preboot/<uuid here>/boot/<hash here>/usr/standalone/firmware/FUD/ISP.img4
08:30millenialhackerThanks ChaosPrincess
08:31ChaosPrincessalso, you shouldnt need it unless you are loading it into ghidra or sth, it should be loaded by iboot, not the os
08:32millenialhackerI;m gonna put it on ghidra
08:33millenialhackerIf I have more than one hash, easy way to check which one to pull from, I guess it's because I have principal MacOS install & Stub for Asahi Linux
08:34ChaosPrincessiiuc you should only have multiple hashes if you installed multiple oses into one container
08:35millenialhackerwell only one of hashes folder has the firmware files
08:35millenialhackerCan I assume those fw files are from stub (12.3) and not main OS (13.0) ?
08:35ChaosPrincessif you grabbed it from /system/volumes/preboot - thats from the active os
08:37ChaosPrincessif you want ones from the stub, you need to mount it's preboot partition somewhere and grab it from that
08:37ChaosPrincessi think you can also grab it from the ipsw
08:38millenialhackerAh got it got it. I'm not familiar with apple partitioning layout & containers.
08:38millenialhackerLet me mount the stub in 1TR and extract the firmware then
08:39millenialhackerrebooting to 1TR... brb
08:41millenia_ has joined #asahi-re
08:42millenialhacker has quit [Read error: No route to host]
08:42millenialhacker has joined #asahi-re
08:44millenia_ has quit [Remote host closed the connection]
08:45millenia_ has joined #asahi-re
08:45millenialhacker has quit [Read error: Connection reset by peer]
08:45millenialhacker has joined #asahi-re
08:46millenia_ has quit [Read error: Connection reset by peer]
09:18millenialhackerISP fw extracted, thanks ChaosPrincess.
09:25MajorBiscuit has joined #asahi-re
09:27nuup has joined #asahi-re
09:33millenialhackerChaosPrincess, I just extracted the payload from img4 / im4m containers, but Ghidra is unable to parse it saying it lacks a LINKEDIT segment. Do you know if I'm missing something?
09:34ChaosPrincessmaybe play with mach-o settings in ghidra?
09:38ChaosPrincessor, load as raw, find the entry point with otool, and define that address as code in ghidra
09:38bluetail3 has joined #asahi-re
09:39ChaosPrincessbut that sounds like pain
09:45millenialhackerI do not see any mach-o options, I mean it allows to pick architecture and that's all, I tried apple silicon & arm32 (I think those co-processors are 32bits) and both failed with same error.
09:45bluetail has quit [Ping timeout: 480 seconds]
09:45bluetail3 is now known as bluetail
09:49millenialhackerwell, otool actually reports it as ARM64 (Cpu type: 16777228)
09:50ChaosPrincesswell, maybe try ida?
09:52millenialhackerI don't have IDA license :(
09:52millenialhackerI'm a hobbyist :D
09:53ChaosPrincesswell, there are ways :wink:
10:05svendon't they have a home license for like 360eur/year or something these days?
10:19millenialhackerI don't have that amount of money in my pocket right now xP
10:44millenialhackerHas anyone here used Ghidra to analyze a co-processor fw?
10:51Dcow has joined #asahi-re
10:59amarioguymillenialhacker: at least you get a coproc fw to analyze, the one i'm working on is encrypted :D
11:00marcanmillenialhacker: Ghidra loads the ISP firmware just fine here. I suspect you messed up extracting it
11:00marcan$ sha1sum adc-astraeus-jc3x.im4p adc-pallas-j129.macho
11:00marcanb86d196ae87b9bf8811d4ca7e3b723496d13724f adc-astraeus-jc3x.im4p
11:00marcan4460847695ef90fea2db6e25f929f37d810b16a0 adc-pallas-j129.macho
11:00marcanthose are from the 12.3 IPSW, but you should get (one of) the same files out of your personalized img4
11:00sveni've loaded dcp and ans into ghidra successfully as well fwiw
11:01marcans/im4p/macho (it's a macho)
11:01marcan(I screwed up the name)
11:04ChaosPrincessmillenialhacker: how did you load it into ghidra, just pointed it at img4?
11:39millenialhackermarcan, sven, amarioguy: I did img4tool extract to extract the im4p
11:39millenialhackerand then I extracted the im4p
11:40millenialhackerimg4tool -e -p ISP.im4p ISP.img4 && img4tool -e -o ISP.bin ISP.im4p
11:41millenia_ has joined #asahi-re
11:45millenia_am I doing something wrong?
11:46ChaosPrincess`dd if=ISP.img4 of=ispx bs=36 skip=1` seems to work
11:46millenia_I extracted those img4 firmware files from Mac OS 12.3 installation.
11:48millenialhacker has quit [Ping timeout: 480 seconds]
12:07marcandifferent ghidra version? (I have 10.1.1)
12:18ncopa has quit [Quit: Alpine Linux, the security-oriented, lightweight Linux distribution]
12:24millenia_that may be, I have 10.2
12:26millenia_ChaosPrincess, I tried as well with dd command and same error when I try to open it with ghidra.
12:26millenia_I will try to downgrade to ghidra 10.1
12:26ChaosPrincessmight be ghidra version, i have 9.1.2
12:27millenia_10.2 was released 6 days ago, I'd not be surprised
12:27MajorBiscuit has quit [Quit: WeeChat 3.6]
12:31millenia_Yeah, it works fine in 10.1
12:31millenia_Be aware now that 10.2 depends of mach-o binaries to include __EDITLINK segment
12:32millenia_This looks like a joke:
12:33millenia_Mach-O Binary Import
12:33millenia_Mach-O binary analysis continues to improve. Support has been added for new file formats introduced in iOS 16 and macOS 13. Improvements have also been made to function identification, symbol detection, and Objective-C support.
12:35millenia_(from release notes of 10.2)
12:35millenia_ is now known as millenialhacker
12:35MajorBiscuit has joined #asahi-re
12:40millenialhackers/ticket/bug/g
12:43cylm has joined #asahi-re
12:56MajorBiscuit has quit [Quit: WeeChat 3.6]
12:58MajorBiscuit has joined #asahi-re
13:36millenialhackerKnown issue, fixed in this commit and will be available in next release:
14:03cylm has quit [Quit: WeeChat 3.7.1]
14:14millenialhacker has quit [Remote host closed the connection]
14:14Dcow has quit [Remote host closed the connection]
14:15Dcow has joined #asahi-re
14:30millenialhacker has joined #asahi-re
14:38millenialhacker has quit [Ping timeout: 480 seconds]
14:44gff has joined #asahi-re
14:48gff_ has quit [Ping timeout: 480 seconds]
15:43millenialhacker has joined #asahi-re
15:52millenialhacker has quit [Ping timeout: 480 seconds]
16:06ncopa has joined #asahi-re
16:49millenialhacker has joined #asahi-re
16:55millenialhacker has quit [Remote host closed the connection]
16:55millenialhacker has joined #asahi-re
17:31millenialhacker has quit [Remote host closed the connection]
17:46MajorBiscuit has quit [Ping timeout: 480 seconds]
18:01Dcow_ has joined #asahi-re
18:08Dcow has quit [Ping timeout: 480 seconds]
18:25cylm has joined #asahi-re
18:33millenialhacker has joined #asahi-re
18:41millenialhacker has quit [Ping timeout: 480 seconds]
18:48cylm_ has joined #asahi-re
18:55cylm has quit [Ping timeout: 480 seconds]
19:00millenialhacker has joined #asahi-re
19:07Dcow_ has quit [Remote host closed the connection]
19:07Dcow has joined #asahi-re
19:08millenialhacker has quit [Ping timeout: 480 seconds]
19:15Dcow has quit [Ping timeout: 480 seconds]
19:25digicyc has quit [Remote host closed the connection]
19:26digicyc has joined #asahi-re
19:29Dcow has joined #asahi-re
19:37nicolas17 has joined #asahi-re
19:38Dcow has quit [Ping timeout: 480 seconds]
19:51Dcow has joined #asahi-re
20:00Dcow has quit [Ping timeout: 480 seconds]
20:03cylm_ has quit [Quit: WeeChat 3.5]
20:24Dcow has joined #asahi-re
20:52Dcow has quit [Ping timeout: 480 seconds]
21:02Dcow has joined #asahi-re
21:10millenialhacker has joined #asahi-re
21:24Dcow has quit [Ping timeout: 480 seconds]
21:34Dcow has joined #asahi-re
21:50millenialhacker has quit [Remote host closed the connection]
22:00Cyrinux has joined #asahi-re
22:04millenialhacker has joined #asahi-re
22:04Dcow has quit [Ping timeout: 480 seconds]
22:07millenialhacker has quit [Remote host closed the connection]
22:07millenialhacker has joined #asahi-re
22:07Axenntio has joined #asahi-re
22:09Axenntio has quit []
22:31Dcow has joined #asahi-re
22:39Dcow has quit [Ping timeout: 480 seconds]
22:47Dcow has joined #asahi-re
22:55Dcow has quit [Ping timeout: 480 seconds]
23:03Dcow has joined #asahi-re
23:11Dcow has quit [Ping timeout: 480 seconds]
23:27Dcow has joined #asahi-re
23:30SSJ_GZ has quit [Ping timeout: 480 seconds]
23:37millenialhacker has quit [Remote host closed the connection]
23:39Dcow has quit [Ping timeout: 480 seconds]
23:44millenialhacker has joined #asahi-re
23:49Dcow has joined #asahi-re
23:53millenialhacker has quit [Ping timeout: 480 seconds]
23:58Dcow has quit [Ping timeout: 480 seconds]
…