This repository has been archived by the owner on Nov 22, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 87
/
Setup.sh
executable file
·68 lines (64 loc) · 2.21 KB
/
Setup.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
#!/usr/bin/env bash
OrigDIR="$(pwd)"
echo "DIR Set to:""${OrigDIR}"
echo "Installing Latest Dependencies"
brew install dpkg
brew install ldid
brew install wget
brew install cmake
brew install homebrew/dupes/unzip
echo "Clean-up"
rm -rf ./Hooks/keystone/ >> /dev/null 2>&1
rm -rf ./Hooks/capstone/ >> /dev/null 2>&1
rm ./ExtraFWs/libcapstone.a >> /dev/null 2>&1
rm ./ExtraFWs/libkeystone.a >> /dev/null 2>&1
rm ./ExtraFWs/Reveal.framework >> /dev/null 2>&1
rm ./Reveal.app.zip >> /dev/null 2>&1
rm -rf ./RevealTMP >> /dev/null 2>&1
rm -rf ./CYTMP >> /dev/null 2>&1
rm ./ExtraFWs/libLiberation.a
rm ./Hooks/Liberation.h
mkdir ExtraFWs >> /dev/null 2>&1
mkdir Packages >> /dev/null 2>&1
echo "Pulling Latest Trunk"
git submodule update --init --recursive
echo "Installing colorama from python-pip"
sudo pip install colorama
echo "Building capstone"
cd capstone && git pull origin master&& ./make.sh ios
cd "${OrigDIR}"
echo "Moving capstone"
mv ./capstone/libcapstone.a ./ExtraFWs/ >>/dev/null
cp -r ./capstone/include ./Hooks/capstone >>/dev/null
cd "${OrigDIR}"
echo "Building Liberation"
cd ./Liberation
cd keystone&&git pull origin master &&cd ../
./liberation setup
./liberation build
cd "${OrigDIR}"
echo "Moving Liberation"
mv ./Liberation/lib/libLiberation.a ./ExtraFWs/
mv ./Liberation/include/Liberation.h ./Hooks/
cd "${OrigDIR}"
echo "Downloading Cycript"
wget https://cydia.saurik.com/api/latest/3 -O Cycript.zip
echo "Cleaning old framework"
rm -rf ./Cycript.framework>> /dev/null 2>&1
rm -rf ./ExtraFWs/Cycript.framework >> /dev/null 2>&1
rm -rf ./Reveal.framework >> /dev/null 2>&1
rm -rf ./ExtraFWs/Reveal.framework>> /dev/null 2>&1
echo "Extracting Cycript"
mkdir CYTMP
unzip Cycript.zip -d ./CYTMP >> /dev/null 2>&1
cp -avR ./CYTMP/Cycript.ios/*.framework ./ExtraFWs/ >> /dev/null 2>&1
rm -rf ./CYTMP
rm -rf ./Cycript.zip
echo "Downloading Reveal"
wget http://download.revealapp.com/Reveal.app.zip
unzip Reveal.app.zip -d ./RevealTMP >> /dev/null 2>&1
rm ./layout/usr/lib/libReveal.dylib
mkdir /layout/usr/lib
cp -rf ./RevealTMP/Reveal.app/Contents/SharedSupport/iOS-Libraries/libReveal.dylib ./layout/usr/lib >> /dev/null 2>&1
rm -rf ./RevealTMP >> /dev/null 2>&1
rm -rf ./Reveal.app.zip >> /dev/null 2>&1