yahibo / comments

博客评论仓库
0 stars 0 forks source link

MonkeyDev安装与使用 | iOS 搬砖人 #9

Open yahibo opened 3 years ago

yahibo commented 3 years ago

https://www.yahibo.top/2019/11/06/MonkeyDev%E5%AE%89%E8%A3%85%E4%B8%8E%E4%BD%BF%E7%94%A8/#more

一、前言前面介绍了APP应用重签名及方法函数的hook,有这些准备工作,就能够对其他应用做一些小改动,修改微信步数、自动抢红包、钉钉打卡定位等等。以上需要我们配置脚本,创建动态库,步骤不复杂但Facebook也给出了更简单的方法,提供了逆向开发的插件 《MonkeyDev》,安装后,我们可以在xcode上直接创建逆向开发工程。 相关链接

yahibo commented 3 years ago

1、库缺失报错 ld: file not found: /usr/lib/libstdc++.dylib 需要下载相应库到/usr/lib目录下即可

可参考:https://github.com/devdawei/libstdc-

目录如下: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/

yahibo commented 3 years ago

2、插件导致错误 The xxxKit app's Info.plist must have a WKCompanionAppBundleIdentifier key set to the bundle identifier of the companion app. Domain: com.apple.dt.MobileDeviceErrorDomain

根据提示信息,进入.app文件,将相应的插件文件删除即可

yahibo commented 3 years ago

3、CydiaSubstrate.tbd文件报错 Ignoring file /opt/theos/vendor/lib/CydiaSubstrate.framework/CydiaSubstrate.tbd, missing required architecture x86_64 in file /opt/theos/vendor/lib/CydiaSubstrate.framework/CydiaSubstrate.tbd (4 slices)

选择了mac工程导致,选择iPhone即可

yahibo commented 2 years ago

4、Logos Tweak工程编译报错 Showing All Messages An empty identity is not valid when signing a binary for the product type 'Dynamic Library'. 在TARGETS - Build Settings中点击加号添加 CODE_SIGNING_ALLOWED设置为NO,重新Build报错解决

yahibo commented 2 years ago

5、Failed to download https://raw.githubusercontent.com/AloneMonkey/frida-ios-dump/3.x/dump.py to /opt/MonkeyDev/bin/dump.py 终端上 ping github.com 获取IP,打开hosts:vim /etc/hosts,在最后添加: 20.205.243.166 raw.githubusercontent.com 添加后重新安装即可。

yahibo commented 2 years ago

6、安装报错:This application is not built for this device. 原因:ipa包是从底系统版本越狱机中拉出,支持机型受限 解决:解压ipa包,将Info.plist文件中的UISupportedDevices项删除即可。

yahibo commented 2 years ago

7、Logos Tweak工程编译报错 _OBJCCLASS$_CADisplayLink 在TARGETS - General- Frameworks and Libraries中添加CADisplayLink对应的框架QuartzCore即可,其他框架函数使用同理

yahibo commented 2 years ago

8、Logos Tweak工程编译报错:corrupted filesystem tarfile in package archive: unsupported PAX tar header type 'x' Errors were encountered while processing: /var/root/MonkeyDevPackages/com.yahibo.WCDemo_0.1-1_iphoneos-arm.deb ssh -p2222 root@localhost dpkg --install /var/root/MonkeyDevPackages/com.yahibo.WCDemo_0.1-1_iphoneos-arm.deb Command PhaseScriptExecution failed with a nonzero exit code 解决: 将 /opt/MonkeyDev/bin/md 第 487 行 tar -cLpz --disable-copyfile --exclude "." "$@" -f "$outputDir/$tarName.tar.gz" || \ panic $? "Failed to create $tarName archive" 替换为 gtar -chpz --exclude "." "$@" -f "$outputDir/$tarName.tar.gz" || \ panic $? "Failed to create $tarName archive"

yahibo commented 2 years ago

9、Logos Tweak工程安装时报错 Showing All Messages dpkg: error processing package com.hibo.hepingjingyingtw (--install):

dependency problems - leaving unconfigured

Errors were encountered while processing:

com.hibo.hepingjingyingtw

解决: ssh进入设备,执行apt-get install -f命令进行依赖关系修复。