笔记--iOS11系统iphone/tool Killed: 9 或者killed 的一种解决方案


#1

killed: 9 报错截图

解决方案就是使用codesign给它签名

codesign -s "A2F872A1D9483EA7E16E6836CDF73B7917010A20" --entitlements demo.entitlements -f demo

  • 其中A2F872A1D9483EA7E16E6836CDF73B7917010A20 可以通过/usr/bin/security find-identity -v -p codesigning指令获取

  • demo.entitlements文件内容如下
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
    <dict>
        <key>com.apple.springboard.debugapplications</key>
        <true/>
        <key>get-task-allow</key>
        <true/>
        <key>proc_info-allow</key>
        <true/>
        <key>task_for_pid-allow</key>
        <true/>
        <key>run-unsigned-code</key>
        <true/>
        <key>platform-application</key>
        <true/>
    </dict>
</plist>
  • 然后把签完名的tool拷贝到手机
    • scp demo root@192.168.31.149:/var
  • 然后移动到/usr/bin
    • mv /var/demo /usr/bin/
  • 然后执行demo
yuzhouheike1haoji:~ root# mv /var/demo /usr/bin/
yuzhouheike1haoji:~ root# demo
2018-09-10 17:03:21.878 demo[798:18804] iOSRE: iOSREd is launched!
2018-09-10 17:06:37.556 demo[798:18804] iOSRE: reboot
Connection to 192.168.31.149 closed by remote host.
Connection to 192.168.31.149 closed.
 ✘ hacker_hades@HadesdeMacBook-Pro  ~ 

手机重启

笔记结束