iCloud sign-in solution for vPhone CLI environments.
Project details
Enable seamless Apple ID and iCloud sign-in for vPhone CLI by leveraging a jailbroken iPhone. This project facilitates the connection between a guest VM and a real device, using Frida agents to handle complex data securely. It's a specialized tool designed for experimental use and requires a bit of setup.
Overview
The VPhoneCliAKD project enables in-guest Apple ID/iCloud sign-in for the vphone-cli. Leveraging a real jailbroken iPhone, this setup allows for the computation of device-bound components such as ADI/Anisette data, APNs push token, and AppleAccount Absinthe/NAC signatures, which are then made available to the guest through Frida agents. The only requirement for the guest is to have frida-server running, eliminating the need for tweaks or fake SEP setups.
Core Functionality
The project employs a sophisticated architecture that facilitates the connection between the guest and host devices. Here's how the flow works:
guest Settings ──► guest akd ◄── Frida agent (run_agent.sh)
│ anisette headers, push token
▼
host mint bridge :6972
▼
AnisetteMiddleware :6971
▼
Frida ► real iPhone akd
guest Preferences ◄── Absinthe bridge (absinthe_bridge.sh) ──► real iPhone Settings
proxies the three AAAbsintheContext (NAC) operations
Prerequisites
The VPhoneCliAKD does not perform jailbreaking or device creation. It requires that both the guest VM and the real iPhone are already jailbroken, with frida-server running on each device to ensure seamless operation:
Additional dependencies include:
frida packagefrida-compile.Quick Start Guide
The initial steps involve checking device connectivity and starting the required services. Below is a simplified sequence to get the setup running:
# Verify that the real iPhone is connected and frida-server is operational
nc -z -w3 192.168.0.216 27042 && echo "phone frida OK"
# Start the AnisetteMiddleware
dotnet ./AnisetteMiddleware.dll --headless
# Launch the host mint bridge
./deploy/run_bridge.sh
# Initialize guest frida-server on SSH
launchctl load -w /var/jb/Library/LaunchDaemons/re.frida.server.plist
# Start the akd agent
./deploy/run_agent.sh 2>&1 | tee -i deploy/diag/signin.log
# Activate the Absinthe bridge
./deploy/absinthe_bridge.sh 2>&1 | tee -i deploy/diag/absinthe.log
Once everything is running, sign in through Settings → Sign in with an Apple ID and password on the guest.
Diagnostics & Logs
Captured session logs are stored in deploy/diag/. It is crucial to avoid sharing these files, as they contain sensitive information such as session tokens and account identifiers.
For advanced configurations and details on how to set up a passcode, consult the documentation available in the docs/ directory, including runbook, status, and architecture notes.
Built upon the foundation of vphone-cli by Lakr233, VPhoneCliAKD represents a pioneering approach to handling Apple ID/iCloud sign-in within a virtualized environment, ensuring functionality for those conducting laboratory experiments.
Comments
0Start the conversation
Share the first comment.