Quantcast
Channel: 睿论坛 - 最新话题
Viewing all articles
Browse latest Browse all 5702

一个拥有ROOT权限的APP 在iOS 9上运行闪退

$
0
0

@Alan_xz wrote:

崩溃信息如下:
Dyld Message: Library not loaded: @rpath/AFNetworking.framework/AFNetworking
Referenced from: /Applications/ReverseTest.app/ReverseTest_
Reason: image not found
Dyld Version: 370.6

操作步骤
1、dylib与.app打了一个拥有root权限的 deb包 ,安装后闪退 。怀疑是postinst问题
代码如下

!/bin/bash

cd "/Applications/ReverseTest.app/"

process origin binary

mv ReverseTest ReverseTest_
chown root.wheel ReverseTest_
chmod +s ReverseTest_

cont=`cat <<"EOF"

!/bin/bash

dir=$(dirname "$0")
exec "${dir}"/ReverseTest_ "$@"
EOF
`

create new fake binary

echo -e "$cont" > ReverseTest
chown root.wheel ReverseTest
chmod +x ReverseTest

The RESPRING script after Install

declare -a cydia
cydia=($CYDIA)

if [[ $1 == install || $1 == upgrade ]]; then
if [[ ${CYDIA+@} ]]; then
eval "echo 'finish:restart' >&${cydia[0]}"
fi
fi

exit

注:好像在10.0以上不会出现闪退,真机运行是正常,去掉root 代码和postinst 与插件同时打包也是正常 ,加上postinst 就会闪退。

Posts: 2

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 5702

Trending Articles