fairplay-decrypt README

项目的 README,来自 github.com/EthanArbuckle/fairplay-decrypt。合并为一个 markdown 文件:README.md。

IPA decryptor

Decrypt FairPlay-encrypted apps using a 16-byte credential for the account that owns each IPA. Credential retrieval gets it from a supported jailbroken device and writes credential.bin to the chosen output directory.

Decryption runs on macOS and Linux.

Supports version-3 and version-5 SUPF, 448-byte and 440-byte SINF priv records, and encrypted arm64 Mach-O slices. A 440-byte record must end in eight zero bytes.

Set up

From this directory, with Python 3.9+:

python3 -m venv .venv
. .venv/bin/activate
python -m pip install -r requirements.txt

The decryptor is pure Python. On macOS, make builds the credential-retrieval bundle and requires Xcode and ldid.

Decrypt

python decrypt.py /path/to/encrypted.ipa /path/to/decrypted.ipa \
  --credential /path/to/credential.bin

If --credential is omitted, the tool reads ./credential.bin. The output path must not exist.

The decryptor uses each IPA's SINF and SUPF records to derive page keys, decrypt its encrypted arm64 pages, and clear cryptid.

fairplay-decrypt (EthanArbuckle/fairplay-decrypt)

正在搜索数据库…

这是什么?这是一个命令行工具,用于解密经过 FairPlay 加密的 App Store IPA 文件。它不依赖外部钥匙串或服务,而是根据 16 字节的账号凭据自行推导解密密钥。
这是图形界面应用还是命令行工具?这是一个用 C 和 Python 编写的命令行工具,分为两个步骤:一个是获取凭据的二进制程序,另一个是独立的解密工具,没有图形界面。
我该如何用它解密 IPA?使用 Python 3.9+ 和 C 编译器,通过 make 构建项目;然后用获取凭据的步骤从越狱设备上取得 credential.bin,再对 IPA 运行解密工具。除非传入 --credential,否则它会读取 ./credential.bin。
构建之前需要安装什么?需要 Python 3.9+ 和 C 编译器。在 macOS 上,make 还会构建获取凭据的程序包,这需要 Xcode 和 ldid。
我必须用越狱的 iPhone 才能使用它吗?是的,生成 credential.bin 需要越狱设备。获取凭据的步骤只能在受支持的越狱设备上运行;解密本身只需要生成的那个文件。
解密工具能在 Linux 上运行吗,还是只能在 macOS 上运行?解密工具在 macOS 和 Linux 上都能运行。只有构建获取凭据的程序包(即 Xcode/ldid 部分)是 macOS 专属的。
这个解密工具对 IPA 具体做了什么?它读取 IPA 中的 SINF 和 SUPF 记录,推导出 FairPlay 页面密钥,解密加密的 arm64 Mach-O 页面,并清除 cryptid 标志。
支持哪些 FairPlay 记录格式?支持第 3 版和第 5 版的 SUPF 结构,以及 448 字节和 440 字节的 SINF priv 记录(440 字节的记录必须以 8 个零字节结尾)。
如果输出文件已经存在,会怎样?如果所选的输出路径已存在,解密工具会拒绝运行,因此不会覆盖已有文件。
没有该应用的 Apple 账号,我能解密 IPA 吗?不能。解密所用的 16 字节凭据属于购买该 IPA 的账号,所以你需要该账号的凭据才能推导出密钥。
大小
11.6 MB
星标
2.5K
更新
提交Nov 08
时长
1个月
提交 · 90 天