sensepost / objection

📱 objection - runtime mobile exploration
GNU General Public License v3.0
7.33k stars 840 forks source link

[bug] Invocation crashed #471

Closed hazcod closed 1 month ago

hazcod commented 3 years ago

Describe the bug A patched app seems to crash on my iPad. Ideas?

To Reproduce

% % objection --debug -g com.foo explore
[debug] Agent path is: /opt/homebrew/lib/python3.9/site-packages/objection/agent.js
[debug] Injecting agent...
Using USB device `iPad 4`
[debug] Attempting to attach to process: `com.foo`
[debug] Unable to find process: `com.foo`, attempting spawn
[debug] PID `669` spawned, attaching...
Unable to connect to the frida server: invocation of 0x1011b4000 crashed at 0x1011b46d0: TARGET_EXC_BAD_ACCESS, EXC_BAD_ACCESS, [ 0x1, 0x104173820 ]

REGISTERS:
    x0: 0x000000010386606c   x1: 0x0000000000000003   x2: 0x000000000000ffff   x3: 0x0000000000000001
    x4: 0x7705000103febbc0   x5: 0x0000000000000000   x6: 0x0000000000000000   x7: 0x0000000000000000
    x8: 0x000000000000ff00   x9: 0x000000000000ffff  x10: 0x0000000000000000  x11: 0x0000000000000000
   x12: 0x0000000000ff0006  x13: 0x0000000000032fec  x14: 0x0000000000000005  x15: 0x0000000000000000
   x16: 0x00000001011b46cc  x17: 0x00000001011b4784  x18: 0x0000000000000000  x19: 0x00000001011b80ed
   x20: 0x0000000000000003  x21: 0xffffffffffffff00  x22: 0x0000000000000004  x23: 0x0000000102d04000
   x24: 0x0000000103ffbfff  x25: 0x0000000104098038  x26: 0x00000001040f4020  x27: 0x000000000000001a
   x28: 0x0000000102d04000   fp: 0x000000016f1ac860   lr: 0x00000001011b46dc   pc: 0x00000001011b46d0
    sp: 0x000000016f1ac760

LOCATION:
   0x00000001011b46d0   0x1011b46d0
   0x00000001011b46dc   0x1011b46dc

Environment (please complete the following information):

hazcod commented 3 years ago

After checking with frida devs, this might be fixed in frida 15 which is currently unsupported by objection. https://github.com/sensepost/objection/issues/472

IPMegladon commented 1 month ago

Objection should work fine now with the latest Frida.