Jailbreak Developer iPhone with task_for_pid()

狂风中的少年 提交于 2021-02-08 11:19:35

问题


  1. I want use task_for_pid() and attach to another process and then change its memory on iOS system. I could do it successfully on OS X with the help of authorization services API, but on iOS, task_for_pid() always returns KERN_FAILURE. I need to get task_for_pid() function to work on jailbreak iPhone under root. As discussed in “Authentication” iOS does not provide this API, What should I do?

  2. Could I run as root on iOS Simulator and how to test app required running as root?


回答1:


It is returning KERN_FAILURE because of sandbox restrictions. Your executable needs the task_for_pid-allow and get-task-allow entitlements. See here for help on adding them to an executable.



来源:https://stackoverflow.com/questions/9944451/jailbreak-developer-iphone-with-task-for-pid

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!