coolstar / electra1131

Electra for iOS 11.0 - 11.3.1
GNU General Public License v3.0
371 stars 139 forks source link

Failed to get connection from a remote gdb process #22

Open ghost opened 6 years ago

ghost commented 6 years ago

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 commented 6 years ago

Don't forget platform-application

zhouzhuhao commented 5 years ago

Did anyone fixed this problem?

CoderYQ commented 3 years ago

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 !