Skip to content

iOS SSH Ramdisk creation tool. No iDevice connection required since keys are fetched online.

License

Notifications You must be signed in to change notification settings

Bonkeyzz/SSH_Ramdisk_Creator

Repository files navigation

SSH Ramdisk Creator

Create iPhone/iPad OS SSH Ramdisks easily.
Based from verygenericname's SSHRD_Script.


Prerequisites

  1. A computer running macOS/linux
  2. Python 3.x

Python Modules

  1. autodecrypt
  2. argsparse
  3. requests

Cloning

  1. Clone and cd into this repository: git clone https://github.com/Bonkeyzz/SSH_Ramdisk_Creator --recursive && cd SSH_Ramdisk_Creator. If you have cloned this before, run cd SSH_Ramdisk_Creator && git pull to pull new changes
  2. After being in the repo directory, do pip install -r requirements.txt

Usage

usage: create_ssh_ramdisk.py [-h] --decrypt-mode DECRYPT_MODE --cpid CPID --model MODEL --product_type PRODUCT_TYPE --ios IOS [--boot-args BOOT_ARGS]

SSHRD Ramdisk creation tool.

options:
  -h, --help            show this help message and exit
  --decrypt-mode DECRYPT_MODE, -d DECRYPT_MODE
                        '0' is decryption using keys fetched online, '1' is decryption with Gaster
  --cpid CPID, -c CPID  CPID of device (example 0x8000)
  --model MODEL, -m MODEL
                        Model of device (example n71ap)
  --product_type PRODUCT_TYPE, -pt PRODUCT_TYPE
                        Product type of device (example iPhone8,1)
  --ios IOS, -i IOS     iOS version for the ramdisk (example 15.7)
  --boot-args BOOT_ARGS, -ba BOOT_ARGS
                        iOS arguments to execute during boot. Default: "rd=md0 debug=0x2014e -v wdt=-1"

Example:

# This will create a ramdisk for iPhone8,2 (iPhone 6s+), Board 1 (BoardConfig: n66ap, CPID: 0x8000)
# With iOS version 15.7. Keys will be fetched online.
./create_ssh_ramdisk.py -d 0 -c 0x8000 -m n66ap -pt iPhone8,2 -i 15.7

Ramdisks will be located in final_ramdisk once the program finishes.
NOTE: iOS 16.x is not supported yet and iOS versions below 15 are indefinitely unsupported. I will not be able to help with any errors occuring when trying to create a ramdisk for this version.

Donate

Feel free to donate if you wanna support my work!

Credits

  • verygenericname for the shell script (original version)
  • tihmstar for pzb/original iBoot64Patcher/img4tool
  • xerub for img4lib and restored_external in the ramdisk
  • Cryptic for iBoot64Patcher fork
  • Nebula for a bunch of QOL fixes to this script

About

iOS SSH Ramdisk creation tool. No iDevice connection required since keys are fetched online.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages