Create and boot a SSH ramdisk on checkm8 devices
- A computer running macOS/linux
 - A checkm8 vulnerable iDevice (chipsets A7-A11)
 
- Clone and cd into this repository: 
git clone https://github.com/Lawin0129/SSHRD_Script --recursive && cd SSHRD_Script- If you have cloned this before, run 
cd SSHRD_Script && git pullto pull new changes 
 - If you have cloned this before, run 
 - Run 
sudo ./sshrd.sh <iOS version for ramdisk>, without the<and>.- If your device is on iOS 11 or under, pick 12.0 for the ramdisk version. Otherwise, use the current iOS version installed on your device.
 - 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 
sudo ./sshrd.sh bootto boot the ramdisk - Run 
sudo ./sshrd.sh sshto connect to SSH on your device - Finally, to mount the filesystems,
- For iOS 7.0 - 10.2.1:
- Run 
mount_hfs /dev/disk0s1s1 /mnt1to mount the RootFS (iOS Firmware) partition on /mnt1 - Run 
mount_hfs /dev/disk0s1s2 /mnt2to mount the UserData partition on /mnt2 
 - Run 
 - For iOS 10.3 and above:
- Run 
mount_apfs /dev/disk0s1s1 /mnt1to mount the RootFS (iOS Firmware) partition on /mnt1 - Run 
mount_apfs /dev/disk0s1s2 /mnt2to mount the UserData partition on /mnt2 
 - Run 
 - For iOS 11 and above, you can also try running 
mount_filesystemswhich mounts every partition. Do not run if below iOS 11. 
 - For iOS 7.0 - 10.2.1:
 - Have fun!
 
- Follow Usage up to step 4.
 - Once you've booted the ramdisk, run 
sudo ./sshrd.sh dump-nand- You can also dump specific partitions,
- Run 
sudo ./sshrd.sh dump-mnt1to dump the whole RootFS (disk0s1s1) - Run 
sudo ./sshrd.sh dump-mnt2to dump the whole user data partition (disk0s1s2) 
 - Run 
 
 - You can also dump specific partitions,
 - It should now start dumping. After disk0 is dumped, it will ask if you want to dump the specific partitions for any reason you might want them (disk0 should contain everything though).
 - The dumps will be saved in the current directory with the file names 
disk0.gz,disk0s1s1.gz,disk0s1s2.gz - Once everything is done, your iDevice will reboot into Recovery Mode. Run 
sudo ./sshrd.sh fix-auto-bootto kick it out of Recovery Mode. 
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
- Reboot your device: 
sudo ./sshrd.sh reboot - Erase all data from your device: 
sudo ./sshrd.sh reset - Fixes auto-boot on your device: 
sudo ./sshrd.sh fix-auto-boot - Dump onboard SHSH blobs: 
sudo ./sshrd.sh dump-blobs - Dump ENTIRE contents of your device: 
sudo ./sshrd.sh dump-nand - Dump mnt1 of your device: 
sudo ./sshrd.sh dump-mnt1 - Dump mnt2 of your device: 
sudo ./sshrd.sh dump-mnt2 - Restores nand dump to your device: 
sudo ./sshrd.sh restore-nand - Restores mnt1 dump to your device: 
sudo ./sshrd.sh restore-mnt1 - Restores mnt2 dump to your device: 
sudo ./sshrd.sh restore-mnt2 - Delete old SSH ramdisk: 
sudo ./sshrd.sh clean