Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to attach on M1 #465

Open
anoane opened this issue Apr 18, 2023 · 1 comment
Open

Unable to attach on M1 #465

anoane opened this issue Apr 18, 2023 · 1 comment

Comments

@anoane
Copy link

anoane commented Apr 18, 2023

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
Copy link

landrufang commented Apr 24, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants