root# debugserver *:1234 -a /var/mobile/Containers/Bundle/Application/C8E829A4-F5FE-4005-BE42-23164DAE9AC7/WeChat.app/WeChat
debugserver-@(#)PROGRAM:debugserver PROJECT:debugserver-320.2.89
for armv7.
Attaching to process /var/mobile/Containers/Bundle/Application/C8E829A4-F5FE-4005-BE42-23164DAE9AC7/WeChat.app/WeChat...
Listening to port 1234 for a connection from *...
Waiting for debugger instructions for process 0.
(3)lldb寻找WeChat偏移
//链接lldb的时候出现一些提示, 不知道会不会影响, 提示如下:
(lldb) process connect connect://localhost:1234
error: unable to find section for section 32
error: unable to find section for section 34
error: unable to find section for section 34
error: unable to find section for section 34
error: unable to find section for section 34
error: unable to find section for section 34
error: unable to find section for section 33
error: unable to find section for section 34
error: unable to find section for section 34
error: unable to find section for section 34
error: unable to find section for section 34
error: unable to find section for section 32
Process 1696 stopped
* thread #1: tid = 0x1f2c4, 0x3a7874f0 libsystem_kernel.dylib`mach_msg_trap + 20, queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
frame #0: 0x3a7874f0 libsystem_kernel.dylib`mach_msg_trap + 20
libsystem_kernel.dylib`mach_msg_trap:
-> 0x3a7874f0 <+20>: pop {r4, r5, r6, r8}
0x3a7874f4 <+24>: bx lr
(lldb) br s -a '0xa9000+0x10E2564'
Breakpoint 1: where = WeChat` + 1428732, address = 0x0118b564
(lldb) br s -a '0xa9000+0x10E218C'
Breakpoint 2: where = WeChat` + 1427748, address = 0x0118b18c