-
Notifications
You must be signed in to change notification settings - Fork 24
/
Requirements.sh
118 lines (106 loc) · 2.8 KB
/
Requirements.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
#!/bin/bash
mkdir bin &> /dev/null
if [ -e "bin/iBoot32Patcher" ]; then
echo "iBoot32Patcher is present"
else
git clone https://github.com/iH8sn0w/iBoot32Patcher
cd iBoot32Patcher
clang iBoot32Patcher.c finders.c functions.c patchers.c -Wno-multichar -I. -o ../bin/iBoot32Patcher
cd ..
rm -rf iBoot32Patcher
fi
if [ -e "bin/xpwntool" ]; then
echo "xpwntool is present"
else
curl -LO https://dayt0n.github.io/odysseus/odysseus-0.999.zip
mkdir odysseus
cd odysseus
unzip ../odysseus-0.999.zip
cp odysseus-0.999.0/macos/xpwntool ../bin/
cd ..
rm -rf odysseus-0.999.zip odysseus
fi
if [ -e "bin/Kernel64Patcher" ]; then
echo "Kernel64Patcher is present"
else
git clone https://github.com/Ralph0045/Kernel64Patcher.git
cd Kernel64Patcher
gcc Kernel64Patcher.c -o Kernel64Patcher
mv -v Kernel64Patcher ../bin
cd ..
rm -rf Kernel64Patcher
fi
if [ -e "bin/kairos" ]; then
echo "kairos is present"
else
git clone https://github.com/dayt0n/kairos.git
cd kairos
make
mv -v kairos ../bin
cd ..
rm -rf kairos
fi
if [ -e "bin/partialZipBrowser" ]; then
echo partialZipBrowser is present
else
echo partialZipBrowser is not present
echo Downloading it
curl -LO https://github.com/tihmstar/partialZipBrowser/releases/download/v1.0/partialZipBrowser.zip
unzip partialZipBrowser.zip
rm -rf partialZipBrowser.zip
mv partialZipBrowser bin
echo Done!
fi
if [ -e "bin/img4" ]; then
echo "img4lib is present"
else
git clone --recursive https://github.com/xerub/img4lib.git
cd img4lib
git submodule init && git submodule update && make -C lzfse [CC="cross-cc"] [LD="cross-ld"]
make [CC="cross-cc"] [LD="cross-ld"] [CORECRYPTO=1] [COMMONCRYPTO=1]
mv -v img4 ../bin
cd ..
rm -rf img4lib
fi
if [ -e "bin/ldid2" ]; then
echo "ldid2 is present"
else
curl -LO https://github.com/xerub/ldid/releases/download/42/ldid.zip
mkdir ldid
cd ldid
unzip ../ldid.zip
mv ldid2 ../bin
cd ..
rm -rf ldid ldid.zip
fi
if [ -e "bin/tsschecker" ]; then
echo "tsschecker is present"
else
curl -LO https://github.com/tihmstar/tsschecker/releases/download/304/tsschecker_macOS_v304.zip
mkdir tsschecker
cd tsschecker
unzip ../tsschecker_macOS_v304.zip
mv tsschecker ../bin
cd ..
rm -rf tsschecker tsschecker_macOS_v304.zip
fi
if [ -e "resources/iosbinpack.tar" ]; then
echo "iosbinpack is present"
else
git clone https://github.com/jakeajames/rootlessJB3.git
mv -v rootlessJB3/rootlessJB/bootstrap/tars/iosbinpack.tar resources
rm -rf rootlessJB3
fi
if [ -e "firmware.json" ]; then
echo firmware.json is present
else
echo "firmware.json isn't present"
echo Downloading it
curl https://api.ipsw.me/v2.1/firmwares.json --output firmware.json &> /dev/null
echo Done!
fi
if [ -e "bin/compareFiles.py" ]; then
echo "compareFiles is present"
else
curl https://raw.githubusercontent.com/dualbootfun/dualbootfun.github.io/d947e2c9b6090a1e65a46ea6a58cd840986ff9d9/source/compareFiles.py --output bin/compareFiles.py
fi