Awesome
<h1 align="center">SSH Ramdisk Script</h1> <p align="center"> <a href="https://github.com/verygenericname/SSHRD_Script/graphs/contributors" target="_blank"> <img src="https://img.shields.io/github/contributors/verygenericname/SSHRD_Script.svg" alt="Contributors"> </a> <a href="https://github.com/verygenericname/SSHRD_Script/commits/main" target="_blank"> <img src="https://img.shields.io/github/commit-activity/w/verygenericname/SSHRD_Script.svg" alt="Commits"> </a> </p> <p align="center"> Create and boot a SSH ramdisk on checkm8 devices </p>Prerequsites
- A computer running macOS/linux
- A checkm8 device (A7-A11)
Usage
- Clone and cd into this repository:
git clone https://github.com/verygenericname/SSHRD_Script --recursive && cd SSHRD_Script
- If you have cloned this before, run
cd SSHRD_Script && git pull
to pull new changes
- If you have cloned this before, run
- Run
./sshrd.sh <iOS version for ramdisk>
, without the<>
.- The iOS version doesn't have to be the version you're currently on, but it should be close enough, and SEP has to be compatible
- If you're on Linux, you will not be able to make a ramdisk for 16.1+, please use something lower instead, like 16.0
- This is due to ramdisks switching to APFS over HFS+, and another dmg library would have to be used
- Place your device into DFU mode
- A11 users, go to recovery first, then DFU.
- Run
./sshrd.sh boot
to boot the ramdisk - Run
./sshrd.sh ssh
to connect to SSH on your device - Finally, to mount the filesystems, run
mount_filesystems
- /var is mounted to /mnt2 in the ssh session.
- /private/preboot is mounted to /mnt6.
- DO NOT RUN THIS IF THE DEVICE IS ON A REALLY OLD VERSION!!!!!!!
- Have fun!
Linux notes
On Linux, usbmuxd will have to be restarted. On most distros, it's as simple as these 2 commands in another terminal:
sudo systemctl stop usbmuxd
sudo usbmuxd -p -f
Other commands
- Reboot your device:
./sshrd.sh reboot
- Erase all data from your device:
./sshrd.sh reset
- Dump onboard SHSH blobs:
./sshrd.sh dump-blobs
- Delete old SSH ramdisk:
./sshrd.sh clean