-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathbootit.gdbscript
More file actions
31 lines (31 loc) · 970 Bytes
/
Copy pathbootit.gdbscript
File metadata and controls
31 lines (31 loc) · 970 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# addresses are for macOS 11 developer beta 3, with a boot kext collection generated using build_arm64e_kcache.sh
target remote :1234
# break on kprintf; enable kprintf
# fffffe00079938fc S _kprintf
# plus the kernelcache offset (+0x5c8000)
# set the flag it checks (disable_serial_output2) to false
# since the debug bootarg only sets disable_serial_output which is or'd together with this
b *0xfffffe0007f5b8fc
command
print *((char*)0xfffffe00099f48c0)=0
dis 1
c
end
# break in bsd_init just before IOKitInitializeTime
# skip the call since it tries to wait 30s for IORTC
# but the timer emulation doesn't work so it freezes
# Look for "Failed to allocate bsd pageable map" and the call is around there
b *0xfffffe0007ca0e8c
command
print $pc=$pc+4
c
end
# break in check_for_signature, make it return true
# so that it allows the invalidly signed iOS launchd to run
# look for "CS Platform Exec Logging"
b *0xfffffe0007cd7728
command
print $pc=$lr
print $x0=0
c
end