frida / frida-core

Frida core library intended for static linking into bindings
https://frida.re
Other
618 stars 198 forks source link

Unable to attach on M1 #465

Open anoane opened 1 year ago

anoane commented 1 year ago

I made a script last year to spawn, attach and hook some applications on Mac M1 and it used to work just fine

device = frida.get_local_device() pid = device.spawn('/Applications/xyz') session = device.attach(pid)

But now after the latest MacOS and Frida updates I get:

Traceback (most recent call last): File "/Users/anon/xyz.py", line xyz, in session = device.attach(pid) File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/frida/core.py", line 86, in wrapper return f(*args, kwargs) File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/frida/core.py", line 1010, in attach return Session(self._impl.attach(self._pid_of(target), kwargs)) # type: ignore frida.NotSupportedError: unexpected error while probing dyld of target process

Mac M1 Pro MacOS 13.4 Beta (22F5027f) Python 3.9.11 frida 16.0.14 frida-tools 12.1.1

landrufang commented 7 months ago

on macos 14 , application crashed when i use device.spawn. and i have already disable sip. if i launch app manually then use device.attach , it works fine. any suggestion will helpfull, thanks.
frida version 16.2.1