hook socket crash~
AloneMonkey opened this issue · comments
not jailbroken on ios10.
hook before:
libsystem_kernel.dylib`socket:
0x1cddf708 <+0>: mov r12, #97
0x1cddf70c <+4>: svc #0x80
0x1cddf710 <+8>: blo 0x1cddf728 ; <+32>
0x1cddf714 <+12>: ldr r12, [pc, #0x4] ; <+24>
0x1cddf718 <+16>: ldr r12, [pc, r12]
0x1cddf71c <+20>: b 0x1cddf724 ; <+28>
0x1cddf720 <+24>: bne 0x1e989b48 ; CMYK64_mark_constmask + 6288
0x1cddf724 <+28>: bx r12
hook after:
libsystem_kernel.dylib`socket:
0x1cddf708 <+0>: .long 0xf000f8df ; unknown opcode
0x1cddf70c <+4>: sbceq r4, r5, r9, lsl r4
0x1cddf710 <+8>: blo 0x1cddf728 ; <+32>
0x1cddf714 <+12>: ldr r12, [pc, #0x4] ; <+24>
0x1cddf718 <+16>: ldr r12, [pc, r12]
0x1cddf71c <+20>: b 0x1cddf724 ; <+28>
0x1cddf720 <+24>: bne 0x1e989b48 ; CMYK64_mark_constmask + 6288
0x1cddf724 <+28>: bx r12
unknown opcode is wrong!
32bit always crash