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

Failed to inject frida-agent into launchd(pid 1) on iOS 14.5 jailbroken with Checkra1n 0.12.3 #1719

Closed
QianNangong opened this issue May 3, 2021 · 13 comments

Comments

@QianNangong
Copy link

QianNangong commented May 3, 2021

I'll get such error messages when connecting to frida-server

process with pid 1 either refused to load frida-agent, or terminated during injection
@as0ler
Copy link

as0ler commented May 3, 2021

I can confirm the bug. It ocurrs when attaching or spawning a new process.

Tested on Frida 14.2.17 with iPhone X and Checkra1n 0.12.3.

Logs:

 ᐅ frida -U -f com.apple.mobilesafari
     ____
    / _  |   Frida 14.2.17 - A world-class dynamic instrumentation toolkit
   | (_| |
    > _  |   Commands:
   /_/ |_|       help      -> Displays the help system
   . . . .       object?   -> Display information about 'object'
   . . . .       exit/quit -> Exit
   . . . .
   . . . .   More info at https://frida.re/docs/home/
Failed to spawn: process with pid 1 either refused to load frida-agent, or terminated during injection

frida -U -n Safari
     ____
    / _  |   Frida 14.2.17 - A world-class dynamic instrumentation toolkit
   | (_| |
    > _  |   Commands:
   /_/ |_|       help      -> Displays the help system
   . . . .       object?   -> Display information about 'object'
   . . . .       exit/quit -> Exit
   . . . .
   . . . .   More info at https://frida.re/docs/home/
Failed to attach: process with pid 1671 either refused to load frida-agent, or terminated during injection

@0xItx
Copy link

0xItx commented May 4, 2021

I can confirm this happens with 14.2.17 on 14.5 while trying to attach or spawn a(ny) process:
Unable to create connection: Error sending credentials: Error sending message: Broken pipe

@QianNangong QianNangong changed the title Failed to inject frida-agent into launchd(pid 1) on iOS 14.5 jailbreaked with Checkra1n 0.12.3 Failed to inject frida-agent into launchd(pid 1) on iOS 14.5 jailbroken with Checkra1n 0.12.3 May 4, 2021
@acmo21
Copy link

acmo21 commented May 4, 2021

Same here.
Problem seems to be valid for all frida on 14.2.X.
iOS is running frida available in Cydia's https://build.frida.re/.

Also it's valid for PID, identifier or app name.

@r3ggi
Copy link

r3ggi commented May 7, 2021

Yeah, I have the same problem

@andrewpedia
Copy link

same problem

@OS0day
Copy link

OS0day commented Jun 30, 2021

excuse me?I hava the same problem. While,can you give me a Oplossing?SOS!!

@forensicmike
Copy link

forensicmike commented Aug 3, 2021

Still running into this on frida-tools v15.0.2, frida-server 15.0.8 and 15.0.13 (latest). I tested it on two different jb devices (iPhone SE iOS 14.6, iPhone 6s iOS 14.3). Note: Injection is working fine to many processes, but not cfprefsd or backboardd (Apple daemons). Attaching to some daemons does work , including launchd and com.apple.mobilesafari (from earlier post on this issue)

@oleavr
Copy link
Member

oleavr commented Sep 3, 2021

Thanks for reporting! This should now be fixed in Frida 15.1.0.

@oleavr oleavr closed this as completed Sep 3, 2021
@Irisansan
Copy link

My Frida version is 15.1.3, but I still got the problem "Failed to attach: process with pid 7651 either refused to load frida-agent, or terminated during injection"😢😢

@bartlomiejduda
Copy link

I'm getting this error on Frida 15.1.14 on Android device.

Why this issue is closed when it isn't really fixed?

@oleavr
Copy link
Member

oleavr commented Jan 5, 2022

@bartlomiejduda This issue is about iOS. If you're running into issues on Android, please open a separate issue describing how it may be reproduced.

@bartlomiejduda
Copy link

@oleavr I have tested this once again after restarting my PC, restarting my phone and re-enabling USB debugging and it seems that there is no need for opening the new issue, because now everything works fine.
I'm using "frida-server-15.1.14-android-arm64" and I have Android 11.

Sorry for the trouble :)

@qdk0901
Copy link

qdk0901 commented Jan 12, 2022

frida-server 15.1.14 and frida-trace 15.1.14 still has problem when inject backboardd on iOS 14.7

I open a new issue #1983

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