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 get connection from a remote gdb process #22

Open
ghost opened this issue Aug 29, 2018 · 3 comments
Open

Failed to get connection from a remote gdb process #22

ghost opened this issue Aug 29, 2018 · 3 comments

Comments

@ghost
Copy link

ghost commented Aug 29, 2018

iPhone7+ 11.3.1

iPhone7p:/ root# ps ax | grep demo

1258   ??  Ss     0:04.92 /var/containers/Bundle/Application/88B0CCF1-87B6-4732-BC86-C127F382A185/demo.app/demo

iPhone7p:/ root# /electra/jailbreakd_client 1258 1
iPhone7p:/ root# /Developer/usr/bin/debugserver *:6666 -a 1258

debugserver-@(#)PROGRAM:LLDB  PROJECT:lldb-900.3.57..2 for arm64.
Attaching to process 1258...
Listening to port 6666 for a connection from *...
Failed to get connection from a remote gdb process.
Exiting.

iPhone7p:/ root#

ldid -e debugserver > debugserver.entitlements
open debugserver.entitlements and set
get-task-allow YES
task_for_pid_allow YES
ldid -Sdebugserver.entitlements debugserver
scp debugserver root@192.168.1.2:/usr/bin/
chmod +x /usr/bin/debugserver
debugserver *:6666 -a 1286
Killed: 9

@jakeajames
Copy link

Don't forget platform-application

@zhouzhuhao
Copy link

Did anyone fixed this problem?

@CoderYQ
Copy link

CoderYQ commented Apr 5, 2021

well,you should adjust debugserver some permissions,just like this:

firstly, use this command to get plist: 'ldid -e debugserver > debugserver.entitlements'

edit the debugserver.entitlements like this,

add get-task-allow = YES;
add task_for_pid-allow = YES;
delete com.apple.security.network.server;
delete com.apple.security.network.client;
delete seatbelt-profiles;

and then use this command to rebuild: 'ldid -Sdebugserver.entitlements debugserver'

enjoy !

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

3 participants