googleprojectzero / iOS-messaging-tools

Apache License 2.0
371 stars 65 forks source link

Got error while attach to USB #2

Open masbog opened 5 years ago

masbog commented 5 years ago

Hi,

i try to attach on my iOS device (iOS 12.0), i change the frida session on python script like:

session = frida.get_usb_device().attach("imagent")

session = frida.attach("imagent")

Hooking -[MessageServiceSession handler:incomingMessage:...] @ 0x211ef60f9 {'type': 'error', 'description': 'Error: unable to intercept function at 0x211ef60f9; please file a bug', 'stack': 'Error: unable to intercept function at 0x211ef60f9; please file a bug\n at frida/runtime/core.js:387\n at /script1.js:70', 'fileName': 'frida/runtime/core.js', 'lineNumber': 387, 'columnNumber': 1} Press Ctrl-C to quit

ChiChou commented 5 years ago

https://github.com/googleprojectzero/iOS-messaging-tools/pull/1/commits/710173bbf07e25bfdcbf58fa0e0bd00d66d2f570

rpwnage commented 4 years ago

The offset is macOS dependent and not in any relation to your iOS version. what macOS are you running @masbog? This error usually means that the provided function offset was not found and therefore cannot be hooked.