-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathGenerateFiles.sh
69 lines (57 loc) · 2.58 KB
/
GenerateFiles.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
#!/bin/bash
# Function definitions
Prnt(){ printf $1; }
Slp(){ sleep $1; }
Replace(){ sed "s/$1/$2/g"; }
Devi(){ ./ideviceinfo | grep -w $1 | awk '{printf $NF}'; }
PLutil(){ echo -e $1 >>$2; }
# Define folder to save the downloaded files
DOWNLOAD_FOLDER="./activation_files"
# Create folder if it does not exist
mkdir -p $DOWNLOAD_FOLDER
# Check and install missing dependencies
install_dependencies() {
DEPENDENCIES=("ideviceactivation" "ideviceinfo" "wget")
for DEP in "${DEPENDENCIES[@]}"; do
if ! command -v $DEP &> /dev/null; then
echo "$DEP could not be found. Installing..."
# This is a placeholder. The actual installation command depends on your package manager.
# For example, on Ubuntu, you might use `apt-get install`:
sudo apt-get install -y libimobiledevice-utils wget
else
echo "$DEP is already installed."
fi
done
}
# Install dependencies
install_dependencies
# Make ideviceinfo executable
chmod +x ideviceinfo
# Generate activation files
printf "generating activation files ..."; Prnt "."; Slp ".2"; Prnt "."; Slp ".2"; Prnt "."; Slp ".2"; Prnt "."
ideviceactivation activate -d -s "https://gsmadjaa.xyz/public/iskip.php?sn=$(Devi SerialNumber)&udid=$(Devi UniqueDeviceID)&ucid=$(Devi UniqueChipID)"
echo "FILES SUCCESSFULLY GENERATED"
# Download Record files
wget -P $DOWNLOAD_FOLDER "https://gsmadjaa.xyz/public/NewActivation/$(Devi UniqueChipID)/activation_record.plist" -O $DOWNLOAD_FOLDER/activation_record.plist
# Download Baseband files
wget -P $DOWNLOAD_FOLDER "https://gsmadjaa.xyz/public/NewActivation/$(Devi UniqueChipID)/com.apple.commcenter.device_specific_nobackup.plist" -O $DOWNLOAD_FOLDER/com.apple.commcenter.device_specific_nobackup.plist
# Download Fairplay files
wget -P $DOWNLOAD_FOLDER "https://gsmadjaa.xyz/public/NewActivation/$(Devi UniqueDeviceID)/IC-Info.sisv" -O $DOWNLOAD_FOLDER/IC-Info.sisv
# Verify ActivationRecord Download
if [[ -f "$DOWNLOAD_FOLDER/activation_record.plist" ]]; then
echo "Downloaded activation_record.plist successfully."
else
echo "Failed to download activation_record.plist."
fi
# Verify Baseband Download
if [[ -f "$DOWNLOAD_FOLDER/com.apple.commcenter.device_specific_nobackup.plist" ]]; then
echo "Downloaded com.apple.commcenter.device_specific_nobackup.plist successfully."
else
echo "Failed to download com.apple.commcenter.device_specific_nobackup.plist."
fi
# Verify Fairplay Download
if [[ -f "$DOWNLOAD_FOLDER/IC-Info.sisv" ]]; then
echo "Downloaded IC-Info.sisv successfully."
else
echo "Failed to download IC-Info.sisv."
fi