Giter Site home page Giter Site logo

n3d1117 / crackbot2 Goto Github PK

View Code? Open in Web Editor NEW
38.0 4.0 8.0 35 KB

A macOS bash script to automate decryption of iOS Apps using a jailbroken iOS device

License: GNU General Public License v3.0

Lua 22.16% Shell 77.84%
bash macos ios bfdecrypt autotouch activator decrypt ipa

crackbot2's Introduction

CrackBot2 ๐Ÿค–

CrackBot2 is a bash script used to automate decryption of iOS apps.

NOTE: for research and reverse engineering purposes only. Do NOT use this for piracy.

Requirements

  • macOS (tested on Catalina 10.15.2)
  • Jailbroken iOS device (tested on iPhone 6s, iOS 11 and 12)

Usage

./bot <iTunes URL>

Setup

Device

  • Set device language to English
  • Connect the device to your computer and make sure to accept the trust dialog
  • Install the following packages from Cydia:
  • Make sure you are logged in the App Store, preferably with US account
  • Disable password requirement for free apps (Settings -> iTunes & App Store -> Password Settings -> Disable Require Password)
  • In bfdecrypt settings, toggle one app on and off (this allows the creation of com.level3tjg.bfdecrypt.plist file in /var/mobile/Library/Preferences)

Computer

  • Install jq with brew install jq (requires Homebrew)
  • Install ios-deploy with brew install ios-deploy (requires Homebrew)
  • Connect your jailbroken device with USB
  • Enable passwordless root login for your device:
    • ssh-keygen -t rsa -P '' -f ~/.ssh/YOUR_DEVICE_NAME (NOTE: you may need to run ssh-add ~/.ssh/YOUR_DEVICE_NAME too)
    • ssh-copy-id -i ~/.ssh/YOUR_DEVICE_NAME.pub root@YOUR_DEVICE_IP (if needed, install ssh-copy-id with brew install ssh-copy-id)
    • You should now be able to connect to your device with ssh root@YOUR_DEVICE_IP without entering the password.
    • NOTE: I strongly recommend enabling SSH via USB so you can connect to your device as ssh root@localhost -p 2222

Getting started

  • Download and install my fork of BishopFox's bfdecrypt:
     cd ~/downloads/
     curl -L -O "https://github.com/n3d1117/bfdecrypt/raw/master/bfdecrypt.dylib"
     scp bfdecrypt.dylib root@YOUR_DEVICE_IP:/Library/MobileSubstrate/DynamicLibraries/bfdecrypt.dylib
  • SSH into your device (ssh root@YOUR_DEVICE_IP) and sign the dylib:
     ldid -S /Library/MobileSubstrate/DynamicLibraries/bfdecrypt.dylib
     killall backboardd
  • Then create needed folders on device:
     cd /var/mobile/Library/AutoTouch/Scripts && mkdir -p CrackBot2
  • Clone this repo on your computer:
     cd ~/downloads/
     git clone https://github.com/n3d1117/CrackBot2.git
  • Copy AutoTouch script to device:
     cd ~/downloads/CrackBot2/AutoTouch 
     scp -r appstoredownload.lua images root@YOUR_DEVICE_IP:/var/mobile/Library/AutoTouch/Scripts/CrackBot2
  • On your device open AutoTouch, go to appstoredownload.lua, click (i) -> Playing settings -> Trigger with activator -> Select Hold status bar.
  • Open bot file with a text editor and, if needed, edit DEVICE_IP and DEVICE_PORT parameters with yours.
  • Done! You can now run the script from your computer:
     cd ~/downloads/CrackBot2/ 
     ./bot

NOTE: Only free apps (or paid ones previously bought) are supported at the moment.

Credits

  • bfdecrypt: Utility to decrypt App Store apps on jailbroken iOS 11.x
  • level3tjg for a preference-based bfdecrypt
  • AutoTouch: Record, playback, simulate human touching/pressing, run Lua scripts.
  • Activator: Centralized gestures, button and shortcut management for iOS

License

Licensed under GNU General Public License v3.0. See LICENSE file for further information.

crackbot2's People

Contributors

n3d1117 avatar nedley avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

crackbot2's Issues

M1 / Download via Itunes?

I would like to download IPAs for use on my M1 Mac, However the iTunes App Store was removed years ago, the windows one still works but that's going soon.

I believe m1 can decrypt apps too as it contains the SEP, have you considered making something like this but for m1 Macs, would no longer rely on a jailbreak.

You can also spoof the https request to download a custom version

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.