Skip to content
Back to search

frida-ios-dump

SkillWorks with Claude CodeGitHub

自动安装和配置 AloneMonkey/frida-ios-dump,连接 USB 越狱 iPhone,枚举应用并导出解密 IPA。适用于用户要求搭建 iOS 砸壳环境、使用 SSH 别名或密钥连接设备、拉取指定应用的场景。

Safety scan

A static text scan, not a guarantee. Select the badge to see what was scanned and every finding.

Checked today
Badge for your README
findsafeskills safety rating

Markdown

[![findsafeskills safety rating](/api/listings/alonemonkey--frida-ios-dump/badge.svg)](/listings/alonemonkey--frida-ios-dump)

HTML

<a href="/listings/alonemonkey--frida-ios-dump"><img src="/api/listings/alonemonkey--frida-ios-dump/badge.svg" alt="findsafeskills safety rating" /></a>

Install

i

What was scanned

The files the safety scan read, as written by the repository's author and shown as plain text. Lines with a finding are marked.

SKILL.md · Manifest · 166 lines

View this file on GitHub (read at the repository's current version: the scan did not record which commit it read)

This file has changed since it was scanned, so this is not exactly the text that was scanned, and no line is marked. The findings are listed with the safety scan above.

  1. ---
  2. name: frida-ios-dump
  3. description: 自动安装和配置 AloneMonkey/frida-ios-dump,连接 USB 越狱 iPhone,枚举应用并导出解密 IPA。适用于用户要求搭建 iOS 砸壳环境、使用 SSH 别名或密钥连接设备、拉取指定应用的场景。
  4. ---
  5. # frida-ios-dump 自动化工作流
  6. 你负责实际执行仓库获取、依赖安装、连接检查和指定应用导出,直到交付经过验证的 IPA,或说明具体阻碍。用户只要求安装时,完成安装和连接验证即可。此文件可独立通过链接读取,无需预先安装本仓库或其他 skill。
  7. 仓库:<https://github.com/AloneMonkey/frida-ios-dump>
  8. ## 1. 确定环境与任务
  9. - 优先复用用户已提供的工作目录、设备、SSH 别名、账号、密钥和应用名称。只询问仍缺少的信息;可以先获取仓库、检查运行时和 SSH 配置,不要为可自动发现的信息中断工作。
  10. - 主机需要 Python 3.10+、Node.js/npm(或 pnpm)和 Git。打包使用 Python 标准库,不需要外部 `zip`、`chmod` 或 `tar`。优先使用现有运行时和项目虚拟环境;缺少工具时用适合当前系统的包管理器补齐,不执行来历不明的远程安装脚本。
  11. - 设备需要已越狱、运行 frida-server 和 SSH 服务,通过 USB 连接并信任主机。解锁、确认信任等物理操作需要用户完成;本工作流不负责越狱。
  12. - 默认仍用 USB。用户指定远程设备时使用 `--remote HOST[:PORT]`,前提是设备的 Frida 和 SSH 服务均可从主机访问;不为此自动修改设备服务监听配置。
  13. - 导出前明确目标应用,优先使用枚举得到的 Bundle ID。未指定目标时先列出应用供用户选择。
  14. ## 2. 获取仓库
  15. 新目录中执行(目录可按用户需求调整):
  16. ```sh
  17. git clone https://github.com/AloneMonkey/frida-ios-dump.git
  18. cd frida-ios-dump
  19. ```
  20. 用户提供了分支、标签或提交时使用该版本。通过某个分支或提交的链接读取本文件时,优先获取同一版本的仓库。没有 Git 时可下载对应版本的 GitHub 源码 ZIP 并用 Python `zipfile` 解压,不必增加 `tar` 依赖。
  21. 已有仓库时先检查 remote、当前分支和 `git status --short`。复用本地修改;仅在适合更新且工作区干净时快进拉取,不执行 `reset --hard`、`clean` 或覆盖用户文件。
  22. 确认该版本同时包含 `SKILL.md`、`requirements.txt`、`package.json`、`dump.py`、`dump.js`;`package.json` 应包含 `frida-objc-bridge`。缺少新版本文件时报告版本不符,不用旧版脚本冒充完成安装。
  23. ## 3. 安装依赖
  24. 以下命令在仓库根目录执行。先确认 `python3` 版本满足要求;如不满足,选择已有的新版 Python 创建 `.venv`,已有可用虚拟环境则复用:
  25. ```sh
  26. python3 -m venv .venv
  27. ./.venv/bin/python -m pip install -r requirements.txt
  28. npm install
  29. ./.venv/bin/python dump.py --help
  30. ```
  31. Windows PowerShell 使用 `python -m venv .venv` 创建环境;将本文件后续命令中的 `./.venv/bin/python` 替换为 `.\.venv\Scripts\python.exe`,不要执行 Unix 的激活脚本或直接运行 `./dump.py`。符号链接和 iOS 文件权限会记录后直接写入 IPA,不需要在 Windows 本地创建链接或设置只读权限。该路径已完成模拟测试,完整 Windows 真机流程尚未实测。
  32. 已安装 pnpm 时可用 `pnpm install --frozen-lockfile` 替代 `npm install`。仓库没有 npm 的 lockfile,不使用 `npm ci`。后续命令均使用虚拟环境中的 Python,无需依赖跨工具调用保留 shell 激活状态。
  33. Frida 17 的 Objective-C bridge 由 npm/pnpm 安装,`dump.py` 会自动编译 agent,不需要手动运行 `frida-compile`。
  34. 安装后直接枚举应用,无需提前查询或对齐设备 Frida 版本,也无需 SSH 凭据:
  35. ```sh
  36. ./.venv/bin/python dump.py -l
  37. ```
  38. 多台 USB 设备时,先用 `frida-ls-devices` 找到用户指定设备的 ID,并在枚举和导出命令中都加 `--device-id DEVICE_ID`;虚拟环境工具可用 `./.venv/bin/frida-ls-devices`(Windows 为 `.\.venv\Scripts\frida-ls-devices.exe`)。用户指定远程连接时,枚举改为 `./.venv/bin/python dump.py --remote HOST:27042 -l`,后续导出也保留同一 `--remote`。这两个选项互斥,连接失败不得改用其他设备。
  39. 如果设备 Frida 仅监听回环地址,可通过指向设备网络地址的 SSH 别名建立隧道:`ssh -N -L 127.0.0.1:27043:127.0.0.1:27042 iphone-network`,随后使用 `--remote 127.0.0.1:27043 -H iphone-network`;任务结束后关闭隧道。远程模式省略 agent source map 以减小上传体积,USB 模式保留。
  40. 如果实际运行出现兼容性错误,再根据具体报错处理,不预先创建版本约束文件或调整设备服务。
  41. ## 4. 配置 SSH
  42. ### 直接通过 USB
  43. 默认连接设备 SSH 22 端口,账号密码为 `root` / `alpine`。不需要 `iproxy` 或本机 2222 转发。
  44. ```sh
  45. ./.venv/bin/python dump.py 'BUNDLE_ID'
  46. ```
  47. 账号不同时使用 `-u`,密钥使用 `-K`;密码使用 `-P`。不需要用户提供凭据时不要索取密码。确需密码时避免将其写入仓库、示例文档或最终报告;命令行 `-P` 会使密码可能出现在进程参数中,优先复用已有密钥。
  48. ### 复用 SSH 别名
  49. 先读取用户指定别名的配置。`-H` 支持 `~/.ssh/config` 中的 `HostName`、`Port`、`User`、`IdentityFile`;命令行选项覆盖配置。不能假定支持系统 OpenSSH 的全部选项,例如跳板机或任意 `ProxyCommand`。
  50. 下面是 USB 别名示例,仅在用户需要创建别名时合并到已有配置;用户名和密钥路径按实际情况选择,密钥不存在时省略 `IdentityFile`:
  51. ```sshconfig
  52. Host iphone
  53. HostName 127.0.0.1
  54. Port 22
  55. User mobile
  56. IdentityFile ~/.ssh/frida_ios_dump_ed25519
  57. ```
  58. ```sh
  59. ./.venv/bin/python dump.py -H iphone 'BUNDLE_ID'
  60. ```
  61. 默认自动模式下,localhost/127.0.0.1/::1 主机或别名均使用 USB,端口表示设备 SSH 端口,不限于 22。例如设备服务监听 44 时,设置别名 `Port 44` 或传入 `-p 44`。显式远程主机名/IP 使用 TCP。可用 `--ssh-transport usb` 或 `--ssh-transport tcp` 显式选择;连接已有本机 TCP 转发服务时使用后者。USB 通道由 `dump.py` 提供,上面的别名本身不能让系统 `ssh iphone` 或 `ssh-copy-id iphone` 自动走 USB。密钥认证失败时仍可回退到默认密码或显式 `-P`。
  62. 使用 `--remote` 时,SSH 默认通过 TCP 连接该 Frida 端点的主机、22 端口;`-H` 可单独指定 SSH 主机或别名,`-p` 仍只设置 SSH 端口,不设置 Frida 端口。远程模式即使 `-H` 指向 localhost 也使用 TCP,不与 `--ssh-transport usb` 组合。IPv6 Frida 端点使用 `[IPv6]:PORT`。
  63. ### 可选:用户要求免密登录时
  64. 复用已有密钥,或创建专用于该设备的密钥。通过已经认证的 SSH/SFTP 连接,将公钥去重追加到对应远端用户的 `~/.ssh/authorized_keys`,保留已有内容,目录权限 700、文件权限 600。私钥留在主机,不能上传。
  65. USB 场景可读取本仓库 `dump.py` 的 `resolve_ssh_options` 和 `connect_ssh`,复用已选定的设备对象建立 `connect_ssh(..., use_usb=True)` 连接,再执行配置或使用 SFTP。需要重新获取设备时,用户指定过 ID 就调用 `get_frida_device(device_id=DEVICE_ID)`;仅在未指定设备时使用默认 USB 选择。配置公钥、独立登录验证、枚举和导出必须沿用同一设备或 ID,获取失败不得回退到默认设备。按当前函数签名调用,结束时关闭 SSH 客户端和返回的 USB forwarder。不为配置密钥引入本机端口转发依赖。
  66. 配置后用 `password=None`、`allow_agent=False`、`look_for_keys=False` 和指定私钥建立一次独立连接,确认成功来自该密钥,再报告免密可用。不要关闭设备密码登录或替换其他公钥。
  67. ## 5. 导出应用
  68. 从枚举结果确认 Bundle ID,确认设备保持解锁,并选择输出路径。脚本创建全新 IPA、通过 ZIP 完整性校验后才替换同名文件;打包或校验失败会保留原 IPA。例如:
  69. ```sh
  70. ./.venv/bin/python dump.py -H iphone -o './exported-app.ipa' 'BUNDLE_ID'
  71. ```
  72. 排查卡住时加 `-v` 查看连接、spawn/attach、agent 编译/加载、下载和打包阶段。慢设备可按实际错误调整 `--agent-timeout SECONDS`(等待下一条 agent 消息,默认 120)或 `--transfer-timeout SECONDS`(SCP/SFTP 的 I/O 等待,默认 60,包含 SFTP 通道建立与初始化、扫描、下载和临时文件清理)。这些参数不是总导出时限,也不控制 Frida 的 spawn/attach 或 agent 编译/加载超时,不应将延长等待当作这些问题的修复。诊断输出不要附加密码或密钥内容。
  73. 没有别名时省略 `-H iphone`,其他 SSH 参数按已验证的配置添加。
  74. 主机每次导出使用独立临时目录;设备端使用任务 UUID 和模块序号生成 `.fid`,避免同名模块覆盖。脚本内部已经并行下载二进制和资源,单次导出无需额外启动多个进程。临时文件隔离不代表同一应用的多次注入或生命周期操作已经过并发验证。
  75. `start dump` 表示设备正在生成解密文件;随后才是传输。已下载的二进制按精确相对路径从资源传输中跳过,只传一次。资源目录边扫描边提交下载,扫描期间显示字节和条目数,总量确定后显示百分比,不额外运行一次全目录扫描或 tar 打包。
  76. 运行期间观察输出和进程状态,持续向用户说明当前阶段。需要中断时发送 Ctrl+C,等待进程退出后再重试,避免遗留并行传输。
  77. ## 6. 验证与交付
  78. 退出码为 0 后,确认输出文件存在且非空。用 Python 标准库检查 ZIP 完整性,并读取主应用信息,例如(替换路径):
  79. ```sh
  80. ./.venv/bin/python - './exported-app.ipa' <<'PY'
  81. import plistlib
  82. import sys
  83. import zipfile
  84. with zipfile.ZipFile(sys.argv[1]) as archive:
  85. bad = archive.testzip()
  86. if bad is not None:
  87. raise RuntimeError(f'Corrupt ZIP entry: {bad}')
  88. infos = [name for name in archive.namelist()
  89. if name.startswith('Payload/') and name.endswith('.app/Info.plist')
  90. and name.count('/') == 2]
  91. if len(infos) != 1:
  92. raise RuntimeError(f'Expected one main app, found {len(infos)}')
  93. info = plistlib.loads(archive.read(infos[0]))
  94. executable = infos[0].rsplit('/', 1)[0] + '/' + info['CFBundleExecutable']
  95. if archive.getinfo(executable).file_size == 0:
  96. raise RuntimeError('Empty executable')
  97. print(info.get('CFBundleIdentifier'), executable)
  98. PY
  99. ```
  100. 需要确认砸壳结果时,解析主程序 Mach-O 的 `LC_ENCRYPTION_INFO` / `LC_ENCRYPTION_INFO_64`,检查 `cryptid=0`。原本无加密标志的文件不能仅凭此证明发生了解密;严格验证可与设备原文件的加密区域比较。将 ZIP 完整性和解密验证的结论分别说明,不把“命令成功”当作全部验证完成。
  101. 交付仓库路径、目标 Bundle ID、IPA 绝对路径、大小和完成的验证。仅安装任务则报告环境和连接验证结果。不要自动重签名或安装导出的 IPA。
  102. ## 常见阻碍
  103. | 现象 | 处理 |
  104. | --- | --- |
  105. | 找不到 USB 设备 | 检查线缆、USB 连接、信任状态及设备 Frida 服务;需要用户确认信任时说明具体操作。 |
  106. | 设备锁定或无法启动应用 | 请用户解锁并手动打开目标应用,保持亮屏后再试。 |
  107. | SSH 认证失败 | 检查实际账号、别名和密钥;默认 root/alpine 并非所有越狱环境通用。请求缺少的认证信息,不反复猜密码。 |
  108. | 缺少 ObjC / bridge | 在仓库根目录安装 npm 依赖,确认使用本版本 `dump.py` 和虚拟环境。 |
  109. | 协议或版本不匹配 | 根据具体报错处理兼容性问题,不自动升级设备端服务。 |
  110. | 长时间 0 B 或异常脱离 | 记录最后日志与进程状态,排查设备锁定、SSH、应用退出及具体错误;处理原因后重试,避免无限重试或默认重启设备。 |
  111. 如果必须修改下载代码,保持 Frida 消息回调只入队,传输在回调之外执行,否则会阻塞 USB 事件循环。修改后运行 `./.venv/bin/python -m unittest discover -s tests -v`,再按用户任务验证真机。
README.md · README · 173 lines

View this file on GitHub (read at the repository's current version: the scan did not record which commit it read)

This file has changed since it was scanned, so this is not exactly the text that was scanned, and no line is marked. The findings are listed with the safety scan above.

  1. # frida-ios-dump
  2. Pull a decrypted IPA from a jailbroken device
  3. ## AI automation
  4. Give your AI tool the link to [SKILL.md](SKILL.md) and ask it to follow the instructions to set up the environment and export your chosen app. The file covers repository download, dependencies, direct USB SSH, SSH aliases, optional key setup, and IPA validation. A jailbroken device with Frida and SSH running is required.
  5. ## Usage
  6. 1. Install [Frida](https://frida.re/) on the jailbroken device. Use the same Frida version on the device and host (current target: 17.23.3).
  7. 2. Set up Python 3.10+ and the Objective-C bridge dependency (requires Node.js/npm):
  8. ```sh
  9. python3 -m venv .venv
  10. source .venv/bin/activate
  11. python -m pip install --upgrade -r requirements.txt
  12. npm install
  13. ```
  14. Alternatively, `pnpm install --frozen-lockfile` installs the bridge using the included lockfile.
  15. On Windows (PowerShell), use:
  16. ```powershell
  17. python -m venv .venv
  18. .\.venv\Scripts\python.exe -m pip install -r requirements.txt
  19. npm install
  20. .\.venv\Scripts\python.exe dump.py -l
  21. ```
  22. IPA packaging uses Python's standard library; no external `zip`, `chmod`, or `tar` command is required. On Windows, device symlinks and Unix permissions are recorded and written directly into the IPA, without creating local symlinks or making downloaded files read-only. The full Windows/device workflow has not yet been tested on a Windows host.
  23. 3. Connect the unlocked device over USB and ensure its SSH service is running. The script connects directly to device SSH port 22 through Frida's USB channel. No local port forwarding or `iproxy` is required. `-p` selects the device SSH port, for example `-p 44` for a service listening on port 44. A localhost hostname or alias uses USB regardless of its port; a remote hostname/IP uses TCP. Use `--ssh-transport usb` or `--ssh-transport tcp` to select the transport explicitly.
  24. 4. Run `python dump.py 'Display name'` or `python dump.py Bundle.identifier`. Use `python dump.py -l` to list installed apps.
  25. The agent explicitly imports `frida-objc-bridge`, and `dump.py` bundles it with `frida.Compiler` before injection. This is required because Frida 17 no longer includes the Objective-C bridge in scripts loaded through the Python API. No separate agent build command is needed. See the official [bridge documentation](https://frida.re/docs/bridges/) and [Frida 17 migration notes](https://frida.re/news/2025/05/17/frida-17-0-0-released/).
  26. Dumped binaries are downloaded once, with up to four downloads running in parallel as the agent finishes each module. After all binary downloads complete, app directories are scanned and discovered resource files are immediately queued for up to four parallel downloads using the existing Paramiko SFTP dependency, skipping the exact paths of those binaries. During scanning, progress shows downloaded bytes and scanned entries; once the total size is known, it shows the overall percentage without resetting downloaded bytes. Directory structure, permissions and symbolic links are preserved before the decrypted binaries are placed into the IPA.
  27. For SSH/SCP make sure you have your public key added to the target device's ~/.ssh/authorized_keys file.
  28. The default SSH credentials are `root` / `alpine`. For a different account, use `./dump.py -u mobile -P 'YOUR_SSH_PASSWORD' Bundle.identifier`, or supply a private key with `-K`. Keys are tried first; the configured default password or explicit `-P` remains available as a fallback if key authentication fails.
  29. `-H` also accepts aliases from `~/.ssh/config`, reading `HostName`, `Port`, `User` and `IdentityFile`. Command-line options override these settings. For example:
  30. ```sshconfig
  31. Host iphone
  32. HostName 127.0.0.1
  33. Port 22
  34. User mobile
  35. IdentityFile ~/.ssh/frida_ios_dump_ed25519
  36. ```
  37. Then run `./dump.py -H iphone Bundle.identifier`. The USB transport is provided by `dump.py`; this alias alone does not establish a USB connection for the system `ssh` command.
  38. If device SSH listens on port 44, change the alias to `Port 44` or pass `-p 44`. To connect to an existing local TCP forwarding service instead, pass `--ssh-transport tcp`.
  39. ### Device selection and remote connections
  40. USB remains the default. When multiple devices are connected, use `frida-ls-devices` to find the device ID, then select it explicitly:
  41. ```sh
  42. python dump.py --device-id DEVICE_ID -l
  43. python dump.py --device-id DEVICE_ID -H iphone Bundle.identifier
  44. ```
  45. To connect without USB, the device's frida-server and SSH service must be reachable over the network. `--remote` selects the Frida endpoint (`HOST[:PORT]`, default port 27042); it is independent of the SSH endpoint:
  46. ```sh
  47. python dump.py --remote 192.168.1.50:27042 -l
  48. python dump.py --remote 192.168.1.50:27042 -u mobile Bundle.identifier
  49. python dump.py --remote 192.168.1.50:27042 -H iphone-network Bundle.identifier
  50. ```
  51. In remote mode, SSH defaults to TCP on the same host, port 22. Use `-H` for a different SSH host or alias and `-p` for its SSH port. For IPv6, use `--remote '[2001:db8::1]:27042'`. `--remote` and `--device-id` are mutually exclusive. A failed explicit connection never falls back to another device. Remote mode cannot be combined with `--ssh-transport usb`.
  52. If frida-server only listens on the device's loopback interface, use an SSH tunnel (where `iphone-network` is your SSH alias for the device's network address):
  53. ```sh
  54. ssh -N -L 127.0.0.1:27043:127.0.0.1:27042 iphone-network
  55. # In another terminal:
  56. python dump.py --remote 127.0.0.1:27043 -H iphone-network Bundle.identifier
  57. ```
  58. Remote mode omits agent source maps to reduce the script upload size. USB mode retains source maps for debugging.
  59. ### Diagnostics and timeouts
  60. ```sh
  61. python dump.py -v --agent-timeout 300 --transfer-timeout 180 -H iphone Bundle.identifier
  62. ```
  63. `-v` / `--verbose` adds host stage diagnostics for device selection, SSH connection, app enumeration, spawn/attach, agent compilation/loading, downloads and packaging. Existing agent console output remains visible without `-v`. Credentials and private key contents are not included in the added diagnostics.
  64. `--agent-timeout` is the wait for the next queued agent message (default 120 seconds). `--transfer-timeout` is the SCP/SFTP I/O timeout (default 60 seconds); it also bounds SFTP channel creation and initialization, and applies to resource scanning, file transfers and device temporary-file cleanup. Both accept positive seconds. These are not total export limits and do not change Frida's spawn/attach or agent compilation/loading timeouts. The last verbose stage helps identify where startup stopped.
  65. ```
  66. ./dump.py Aftenposten
  67. Start the target app Aftenposten
  68. Dumping Aftenposten to /var/folders/wn/9v1hs8ds6nv_xj7g95zxyl140000gn/T
  69. start dump /var/containers/Bundle/Application/66423A80-0AFE-471C-BC9B-B571107D3C27/AftenpostenApp.app/AftenpostenApp
  70. start dump /private/var/containers/Bundle/Application/66423A80-0AFE-471C-BC9B-B571107D3C27/AftenpostenApp.app/Frameworks/AFNetworking.framework/AFNetworking
  71. start dump /private/var/containers/Bundle/Application/66423A80-0AFE-471C-BC9B-B571107D3C27/AftenpostenApp.app/Frameworks/ATInternet_iOS_ObjC_SDK.framework/ATInternet_iOS_ObjC_SDK
  72. start dump /private/var/containers/Bundle/Application/66423A80-0AFE-471C-BC9B-B571107D3C27/AftenpostenApp.app/Frameworks/SPTEventCollector.framework/SPTEventCollector
  73. start dump /private/var/containers/Bundle/Application/66423A80-0AFE-471C-BC9B-B571107D3C27/AftenpostenApp.app/Frameworks/SPiDSDK.framework/SPiDSDK
  74. start dump /private/var/containers/Bundle/Application/66423A80-0AFE-471C-BC9B-B571107D3C27/AftenpostenApp.app/Frameworks/libswiftCore.dylib
  75. start dump /private/var/containers/Bundle/Application/66423A80-0AFE-471C-BC9B-B571107D3C27/AftenpostenApp.app/Frameworks/libswiftCoreData.dylib
  76. start dump /private/var/containers/Bundle/Application/66423A80-0AFE-471C-BC9B-B571107D3C27/AftenpostenApp.app/Frameworks/libswiftCoreGraphics.dylib
  77. start dump /private/var/containers/Bundle/Application/66423A80-0AFE-471C-BC9B-B571107D3C27/AftenpostenApp.app/Frameworks/libswiftCoreImage.dylib
  78. start dump /private/var/containers/Bundle/Application/66423A80-0AFE-471C-BC9B-B571107D3C27/AftenpostenApp.app/Frameworks/libswiftCoreLocation.dylib
  79. start dump /private/var/containers/Bundle/Application/66423A80-0AFE-471C-BC9B-B571107D3C27/AftenpostenApp.app/Frameworks/libswiftDarwin.dylib
  80. start dump /private/var/containers/Bundle/Application/66423A80-0AFE-471C-BC9B-B571107D3C27/AftenpostenApp.app/Frameworks/libswiftDispatch.dylib
  81. start dump /private/var/containers/Bundle/Application/66423A80-0AFE-471C-BC9B-B571107D3C27/AftenpostenApp.app/Frameworks/libswiftFoundation.dylib
  82. start dump /private/var/containers/Bundle/Application/66423A80-0AFE-471C-BC9B-B571107D3C27/AftenpostenApp.app/Frameworks/libswiftObjectiveC.dylib
  83. start dump /private/var/containers/Bundle/Application/66423A80-0AFE-471C-BC9B-B571107D3C27/AftenpostenApp.app/Frameworks/libswiftQuartzCore.dylib
  84. start dump /private/var/containers/Bundle/Application/66423A80-0AFE-471C-BC9B-B571107D3C27/AftenpostenApp.app/Frameworks/libswiftUIKit.dylib
  85. Generating Aftenposten.ipa
  86. Done.
  87. ```
  88. Congratulations!!! You've got a decrypted IPA file.
  89. Drag to [MonkeyDev](https://github.com/AloneMonkey/MonkeyDev), Happy hacking!
  90. ## Support
  91. Python 3.10+ and Frida 17.23.3 / 17.x. Python 2 is no longer supported.
  92. Validated with Frida 17.23.3 on a jailbroken iPhone X running iOS 16.7.16: app enumeration, agent injection, module dumping, direct USB SSH/SCP download using the `mobile` user and SSH alias, and IPA packaging. The exported IPA passed ZIP integrity checks, and the main executable's encryption flag changed from `cryptid=1` to `cryptid=0` with different bytes in the encrypted region. Keep the device unlocked during startup and dumping.
  93. Run the host regression tests with `python -m unittest discover -s tests -v`.
  94. Run the agent regression tests with Node.js:
  95. ```sh
  96. node tests/test_agent.js
  97. node tests/test_agent_io.js
  98. node tests/test_agent_scan.js
  99. node tests/test_agent_temp.js
  100. ```
  101. ## Troubleshooting
  102. | Problem | What to check |
  103. | --- | --- |
  104. | Cannot start or attach to the app | Unlock the device, open the target app manually, then retry. |
  105. | `ObjC is not defined` or missing bridge | Run `npm install` in the repository and use this version of `dump.py`. |
  106. | Frida connection or protocol error | Check that frida-server is running and the host and device Frida versions match. |
  107. | SSH authentication failed | Check the SSH username, password or private key, and any settings in your SSH alias. |
  108. If the problem persists, open an issue with the full error output, iOS version, and host/device Frida versions. Remove passwords and other private information from the logs.
  109. ## 个人博客
  110. 欢迎访问我的个人博客 [AloneMonkey](https://www.alonemonkey.com),阅读更多技术文章与实践分享。
  111. ## 关注公众号 · 添加个人微信
  112. 欢迎扫码关注我的微信公众号,或添加个人微信,一起交流技术与实践。
  113. | 个人微信 · AloneMonkey | 微信公众号 |
  114. | :---: | :---: |
  115. | <img src="assets/wechat-personal.jpg" alt="AloneMonkey 个人微信二维码" width="280" /> | <img src="assets/wechat-official-account.png" alt="微信公众号关注二维码" width="280" /> |
  116. <a href="https://hotrepo.ai/AloneMonkey/frida-ios-dump?utm_source=github-readme&utm_medium=chart">
  117. <picture>
  118. <source media="(prefers-color-scheme: dark)" srcset="https://hotrepo.ai/AloneMonkey/frida-ios-dump/star-history.svg?style=avatar&theme=dark">
  119. <img alt="Star history of AloneMonkey/frida-ios-dump" src="https://hotrepo.ai/AloneMonkey/frida-ios-dump/star-history.svg?style=avatar">
  120. </picture>
  121. </a>

Ratings and comments

Sign in to rate this skill.

Sign in

Free to use. If it’s helped, pass it on.