自己写了个带反调试的appDemo,想试试逆向一下,结果崩溃了
系统环境:iOS 8.4
1.修改了__RESTRICT和__restrict为 __ERSTRITC __erstritc
2.ldid -S 二进制文件
3.Cydia下载安装了AppSync
4.拷贝替换掉原app二进制文件
5.修改二进制文件权限
6.运行=>崩溃
PS:如果再拷贝出app,然后重签名,再安装新包的话是没问题的;所以只替换二进制文件没法正常运行吗?
log如下:
Nov 22 14:12:26 iPhone-5c kernel[0] <Notice>: Sandbox: hook..execve() killing pid 3868: application requires container but none set Nov 22 14:12:26 iPhone-5c com.apple.xpc.launchd[1] (UIKitApplication:com.testflag[0xf21e][3868]) <Notice>: Service exited due to signal: Killed: 9 Nov 22 14:12:26 iPhone-5c assertiond[106] <Warning>: Unable to obtain a task name port right for pid 3868: (os/kern) failure (5) Nov 22 14:12:26 iPhone-5c SpringBoard[3591] <Warning>: Unable to register for exec notifications: No such process Nov 22 14:12:26 iPhone-5c SpringBoard[3591] <Warning>: Unable to obtain a task name port right for pid 3868: (os/kern) failure (5) Nov 22 14:12:26 iPhone-5c SpringBoard[3591] <Warning>: Unable to obtain a task name port right for <FBApplicationProcess: 0x1626e320; com.testflag; pid: 3868> Nov 22 14:12:26 iPhone-5c SpringBoard[3591] <Warning>: Unable to get short BSD proc info for 3868: No such process Nov 22 14:12:26 iPhone-5c SpringBoard[3591] <Warning>: Unable to get proc info for 3868: No such process Nov 22 14:12:26 iPhone-5c assertiond[106] <Warning>: Could not set priority of <BKNewProcess: 0x165a1270; com.testflag; pid: 3868; hostpid: -1> to 1, priority: No such process Nov 22 14:12:26 iPhone-5c SpringBoard[3591] <Warning>: Unable to register for exec notifications: No such process Nov 22 14:12:26 iPhone-5c SpringBoard[3591] <Warning>: Unable to obtain a task name port right for pid 3868: (os/kern) failure (5) Nov 22 14:12:26 iPhone-5c assertiond[106] <Warning>: Could not set priority of <BKNewProcess: 0x165a1270; com.testflag; pid: 3868; hostpid: -1> to 0, priority: No such process Nov 22 14:12:26 iPhone-5c SpringBoard[3591] <Warning>: Unable to obtain a task name port right for <FBApplicationProcess: 0x1626e320; com.testflag; pid: 3868> Nov 22 14:12:26 iPhone-5c SpringBoard[3591] <Warning>: Unable to get short BSD proc info for 3868: No such process Nov 22 14:12:26 iPhone-5c SpringBoard[3591] <Warning>: Unable to get proc info for 3868: No such process Nov 22 14:12:26 iPhone-5c SpringBoard[3591] <Warning>: LICreateIconForImage passed NULL CGImageRef image Nov 22 14:12:26 iPhone-5c locationd[120] <Notice>: Gesture EnabledForTopCLient: 0, EnabledInDaemonSettings: 0 Nov 22 14:12:26 iPhone-5c SpringBoard[3591] <Warning>: Application 'UIKitApplication:com.testflag[0xf21e]' exited abnormally via signal. Nov 22 14:12:26 iPhone-5c assertiond[106] <Warning>: Could not set priority of <BKNewProcess: 0x165a1270; com.testflag; pid: 3868; hostpid: -1> to 2, priority: No such process Nov 22 14:12:26 iPhone-5c assertiond[106] <Warning>: Could not set priority of <BKNewProcess: 0x165a1270; com.testflag; pid: 3868; hostpid: -1> to 4096, priority: No such process Nov 22 14:12:27 iPhone-5c locationd[120] <Notice>: Gesture EnabledForTopCLient: 0, EnabledInDaemonSettings: 0 Nov 22 14:12:34 iPhone-5c locationd[120] <Notice>: Gesture EnabledForTopCLient: 0, EnabledInDaemonSettings: 0
[PS:MachOView截图]