Skip to content

9LogM/SSHRD_Script

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SSHRD_Script

A fork of iPh0ne4S's SSHRD_Script, which is a fork of Nathan verygenericname's SSHRD_Script.

  • Linux or macOS required.
  • USB-A cable required.
  • A7-A11 devices only. For 32-bit devices, use Legacy iOS Kit.

View changelog: https://github.com/9LogM/SSHRD_Script/wiki/Changelog
Report bugs: https://github.com/9LogM/SSHRD_Script/issues
Request features: https://github.com/9LogM/SSHRD_Script/discussions

Basic Usage: create ramdisk, boot ramdisk, SSH into device

  1. Clone this repository.
    git clone https://github.com/9LogM/SSHRD_Script --recursive
  2. Navigate into SSHRD_Script directory. Make script executable if running the script for the first time.
    cd SSHRD_Script && chmod +x sshrd.sh
  3. Create ramdisk.
    ./sshrd.sh <ramdisk version>
    • For iOS 7-9 devices, run ./sshrd.sh 12.0
      • A7 iOS 7 devices will be stuck in recovery loop after loading a higher version ramdisk, boot 8.0 ramdisk to fix this.
    • For iOS 10+ devices, use device version as ramdisk version, e.g., run ./sshrd.sh 11.2.2 for iOS 11.2.2 iPhone 6s, or the closest one if the ipsw of device version doesn't exist, e.g., ./sshrd.sh 11.1 for iOS 11.0.1 iPhone X.
    • A wrong ramdisk version might cause bootloop, and this always happens on 16.4+ devices, check device version first.
    • It is common to see "an error occurred" or device rebooting, just try again.
  4. Boot ramdisk, if unable to connect to device, unplug and replug the cable.
    ./sshrd.sh boot
  5. SSH into device, if the terminal says "WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!", run rm -f ~/.ssh/known_hosts and try again.
    ./sshrd.sh ssh

Other Commands

In this part, unless otherwise specified, all the commands should be executed after booting ramdisk, i.e., after creating ramdisk and running ./sshrd.sh boot, before ./sshrd.sh ssh.

  • Reboot device: ./sshrd.sh reboot
  • Erase device on iOS 9+: ./sshrd.sh reset
  • Dump onboard blobs: ./sshrd.sh dump-blobs
  • Remove temporary files: ./sshrd.sh clean (run this one when no device)
  • Exit recovery mode: ./sshrd.sh --exit-recovery (run this one in recovery mode)
  • Block OTA updates: ./sshrd.sh --block-ota
  • Backup and restore activation files (iOS 10+)
    • Run ./sshrd.sh --backup-activation to backup activation files, ./sshrd.sh --restore-activation to restore them
  • Backup and restore activation files (iOS 7-9, requires open menu)
    • Commands are ./sshrd.sh --backup-activation-hfs and ./sshrd.sh --restore-activation-hfs
    • On 7.0-9.3.5, activation files cannot be downloaded using scp or sftp command, instead they can be moved to /private/var/mobile/Media (the directory that is accessible in normal mode without a jailbreak) to become downloadable, therefore passcode locked devices are not supported
    • On 8.3+, activation files can be restored in the same way, place them in /private/var/mobile/Media first
  • Backup and restore the entire contents on NAND (dangerous, might cause bootloop)
    • Run ./sshrd.sh --dump-nand to backup NAND to disk0.gz, ./sshrd.sh --restore-nand to restore disk0.gz to /dev/disk0 on device. On 7.0-10.2.1, another option is to run ./sshrd.sh --dump-disk0s1s1 and ./sshrd.sh --restore-disk0s1s1 to backup and restore system partition
    • Do not mount any partition before running these commands
  • Install TrollStore on 14.0-16.6.1, 16.7 RC, 17.0: ./sshrd.sh --install-trollstore
  • Un-disable and get unlimited passcode attempts on iOS 7-8: ./sshrd.sh --brute-force

Notes

  • On Linux, A7 devices must be manually placed into pwnDFU using ipwnder_lite. Follow this guide.
  • If there are permission denied, terminated or operation not permitted errors with sshrd.sh, try running sshrd.sh with sudo, especially on macOS.
  • Even if mounting /mnt2 as read/write, some files like photos still won't be downloadable, that's due to userdata encryption and there's actually nothing wrong.

About

Now with even more features.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%