iOS逆向开发 root权限位注意事项

root权限位注意事项

首先要将.app改为

mobile staff权限

chown mobile:staff HDFakerDemo.app/

一开始

然后

//先将权限由root admin变为 mobile staff

chown mobile:staff *

最后

//给执行文件root提权

chown root:wheel HDFakerDemo 

chmod +s HDFakerDemo 

chmod +x HDFakerDemo 

chmod +s rootstrap.sh 

chmod +x rootstrap.sh 

//重启

killall -9 SpringBoard

iPhone:~ root# cd /Applications/HDFakerDemo.app/

iPhone:/Applications/HDFakerDemo.app root# chown mobile:staff *     

iPhone:/Applications/HDFakerDemo.app root# chown root:wheel HDFakerDemo 

iPhone:/Applications/HDFakerDemo.app root# chmod +x rootstrap.sh 

iPhone:/Applications/HDFakerDemo.app root# chmod +x HDFakerDemo 

iPhone:/Applications/HDFakerDemo.app root# killall -9 SpringBoard

查看

grep iOSRE: /var/log/syslog

你可能感兴趣的:(iOS逆向开发 root权限位注意事项)