lara icon indicating copy to clipboard operation
lara copied to clipboard

Hello, everyone! I've been trying some offsets recently, hoping to find the right value for me iPhone16Pro Max iOS18.6.2

Open mychenliu-jpg opened this issue 7 months ago • 12 comments

lara started: 2026-04-23 06:56:48

(utils) TASK_TNEXT_OFFSET: 0x50

(utils) THREAD_MUPCB_OFFSET: 0xb8

(utils) PROC_PID_OFFSET: 0x60

(offs) loaded saved t1sz_boot: 0x19

(offs) t1sz_boot: 0x19

(offs) saved t1sz_boot: 0x19

initialized offsets

(offs) loaded saved t1sz_boot: 0x19

(offs) t1sz_boot: 0x19

(offs) saved t1sz_boot: 0x19

initialized offsets

(ds) starting darksword (ds) device: iPhone17,2 (ds) ispac: yes (ds) running on a18 device (ds) read_fd: 0x11 (ds) write_fd: 0x12 (ds) executable_path: /private/var/containers/Bundle/Application/F12F397F-2147-4D67-AD3E-FDEA37052109/lara.app/lara (ds) host_executable_path: /private/var/containers/Bundle/Application/F12F397F-2147-4D67-AD3E-FDEA37052109/lara.app/lara (ds) guest_executable_name: lara (ds) host_executable_name: lara (ds) kernel_process_name: lara (ds) livecontainer_bundle: no (ds) livecontainer_guest: no (ds) rehosted_process: no (ds) process_marker[0]: lara (ds) executable_name: lara (ds) free_thread_arg: 0x112708000 (ds) physical_mapping_address: 0x10c898000 (ds) pc_object: 0xf007 (ds) pc_address: 0x32c284000 (ds) allocating wired memory (131072 entries)... (ds) allocating wired memory done (ds) seeking_offset: 0x0: Found wired_page: 0x153c0c000 (ds) seeking_offset: 0x18000: Found wired_page: 0x10f2d8000 (ds) seeking_offset: 0x124000: Found wired_page: 0x158fdc000 (ds) seeking_offset: 0x88000: Found wired_page: 0x16a204000 (ds) seeking_offset: 0x50000: Found wired_page: 0x30fc64000 (ds) seeking_offset: 0x10000: Found wired_page: 0x11dd64000 (ds) seeking_offset: 0xc000: Found wired_page: 0x16ef58000 (ds) seeking_offset: 0x14000: Found wired_page: 0x10eacc000 (ds) waiting for zone trimming... (ds) seeking_offset: 0x60000: Found wired_page: 0x14fcc4000 (ds) seeking_offset: 0x70000: Found wired_page: 0x14c1fc000 (ds) seeking_offset: 0x84000: Found wired_page: 0x30d454000 (ds) seeking_offset: 0xdc000: Found wired_page: 0x11ea10000 (ds) seeking_offset: 0xec000: Found wired_page: 0x1688f8000 (ds) seeking_offset: 0xf8000: Found wired_page: 0x30b4dc000 (ds) seeking_offset: 0x1c0000: Found wired_page: 0x10edec000 (ds) seeking_offset: 0x48000: Found wired_page: 0x1778d4000 (ds) waiting for zone trimming... (ds) seeking_offset: 0x160000: Found wired_page: 0x3011d4000 (ds) seeking_offset: 0x12c000: Found wired_page: 0x30b318000 (ds) seeking_offset: 0xc0000: Found wired_page: 0x3019a0000 (ds) seeking_offset: 0xd4000: Found wired_page: 0x11ea08000 (ds) seeking_offset: 0x1ec000: Found wired_page: 0x30fcfc000 (ds) seeking_offset: 0x1e8000: Found wired_page: 0x16ed64000 (ds) seeking_offset: 0x254000: Found wired_page: 0x3056d4000 (ds) Matched PCB via process marker: lara (ds) pcb_start_offset: 0x0 (ds) target_inp_gencnt: 0x32eca (ds) inp_list_next_pointer: 0xffffffe115398400 (ds) icmp6filter: 0xffffffe40d693600 (ds) Corrupting icmp6filter pointer... (ds) target corrupted: 0xffffffe115398548 (ds) found control_socket at idx: 0x375f (ds) seeking_offset: 0xf8000: Found PCB page

(utils) socket fallback: pcb=0xffffffe115398400 pid=560

(utils) socket found via pcb+0x28 = 0xfffffff04bc20b58 (backptr at +0x0)

(utils) socket scan found nothing (pcb=0xffffffe115398400 sock=0xfffffff04bc20b58) (ds) highest_success_idx: 499 (ds) exploit success! (ds) kernel_base: 0xfffffff047dc8000 (ds) kernel_slide: 0x40dc4000

(ds) success_read_count: 370 (ds) Walking kernel structures... (ds) control_socket_pcb: 0xffffffe115398000 (ds) pcbinfo_pointer: 0xfffffff04bc2e790 (ds) ipi_zone: 0xfffffff0489f0f20 (ds) zv_name: 0xfffffff047e425c3 (ds) searching for kernel Mach-O header from 0xfffffff047e40000... (ds) candidate Mach-O at 0xfffffff047dd0000: filetype=2 cpuinfo=0x2c0000002 (iter=28) (ds) candidate Mach-O at 0xfffffff047dc8000: filetype=12 cpuinfo=0xc00000002 (iter=30) (ds) found MH_FILESET header at 0xfffffff047dc8000 (ds) kernel_base: 0xfffffff047dc8000 (ds) kernel_slide: 0x40dc4000 (ds) iOS 18: using so_count offset 0x254 (ds) kernel r/w is ready! (ds) our_proc: 0xffffffe1f9635618 (ds) our_task: 0xffffffe1f9635d58

(ds) exploit success! (ds) kernel_base: 0xfffffff047dc8000 (ds) kernel_slide: 0x40dc4000

mychenliu-jpg avatar Apr 22 '26 23:04 mychenliu-jpg

Hello, everyone! I've been trying some offsets recently, hoping to find a value that suits me. It crashes every time I run, and the phone restarts, which is a little annoying. However, I have successfully found some offset values, hoping to help you. The following is the offset value I found:

mychenliu-jpg avatar Apr 22 '26 23:04 mychenliu-jpg

well the exploit succeeds from what you've provided. what ends up panicking your phone?

rooootdev avatar Apr 23 '26 01:04 rooootdev

well the exploit succeeds from what you‘ve provided. what ends up panicking your phone?

Clicking to use it will cause the app to crash; the success rate is extremely low.

Mrchenliu avatar Apr 23 '26 01:04 Mrchenliu

well the exploit succeeds from what you've provided. what ends up panicking your phone?

After clicking "Run Exploit," the phone automatically restarted after loading to 39%. This is likely due to a conflicting offset being exploited.

Mrchenliu avatar Apr 23 '26 01:04 Mrchenliu

what device+version are you on?

rooootdev avatar Apr 23 '26 02:04 rooootdev

what device+version are you on?

iPhone16Pro Max iOS18.6.2

Mrchenliu avatar Apr 23 '26 02:04 Mrchenliu

what device+version are you on?

Sometimes after restarting 3-4 times and clicking "Run Exploit," the progress bar quickly reaches 99%, and then the sandbox escape is successfully exploited. However, I'm unsure which offset was used to succeed. Each time I run Lara, it crashes many times before finally succeeding.

Mrchenliu avatar Apr 23 '26 02:04 Mrchenliu

oh weird I though ds was deterministic

rooootdev avatar Apr 23 '26 02:04 rooootdev

This crash is not an isolated incident. Could you please help optimize the system and try adding a feature to automatically save the offset after successful exploitation?

roooot @.***>于2026年4月23日 周四10:31写道:

rooootdev left a comment (rooootdev/lara#173) https://github.com/rooootdev/lara/issues/173#issuecomment-4301351606

oh weird I though ds was deterministic

— Reply to this email directly, view it on GitHub https://github.com/rooootdev/lara/issues/173?email_source=notifications&email_token=B24EZUYQTUOSHQV4SAWA54D4XF57HA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTIMZQGEZTKMJWGA3KM4TFMFZW63VGMF2XI2DPOKSWK5TFNZ2KYZTPN52GK4S7MNWGSY3L#issuecomment-4301351606, or unsubscribe https://github.com/notifications/unsubscribe-auth/B24EZU4CN7QXHNNIOAEG4D34XF57HAVCNFSM6AAAAACYC646I6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHM2DGMBRGM2TCNRQGY . You are receiving this because you authored the thread.Message ID: @.***>

mychenliu-jpg avatar Apr 23 '26 02:04 mychenliu-jpg

these offsets aren't constants

rooootdev avatar Apr 23 '26 15:04 rooootdev

I have several versions of lara, I don't know which version I downloaded

Of all the old and latest lara versions, only one works on my iphone 15PM ios version 17.5.1

Image

Amin-70 avatar Apr 24 '26 05:04 Amin-70

In this successful version of the lara, the remote control also works only if the lara is not closed from the app switcher or respring from the app

Here's the lara link that works on my iphone 15PM ios 17.5.1

https://drive.google.com/file/d/1tnP7msVL97x3hqWsCIu_Vtt4OR4UkBkM/view?usp=drivesdk

Image

Amin-70 avatar Apr 24 '26 05:04 Amin-70