This repository has been archived by the owner on Aug 8, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathbuild.sh
executable file
·95 lines (88 loc) · 2.83 KB
/
build.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
#!/bin/bash
#######################################################################
#
# Project......: setup.sh
# Creator......: matteyeux
# Description..: Script to install usefull tools for Decrypt0r
#
######################################################################
# Language :
# bash
# Version : 0.3
#
# Change Log
# ==========
# DD/MM/YY
# ===============================================================
# Date | Who | What
# ---------------------------------------------------------------
# 04/10/15 | Mathieu Hautebas | Script creation
# ---------------------------------------------------------------
# 10/12/15 | Mathieu Hautebas | Added cool things
# ---------------------------------------------------------------
# 11/12/15 | Mathieu Hautebas | Added savethemblobs
# ---------------------------------------------------------------
# 29/12/15 | Mathieu Hautebas | iOS Utilities install
# ---------------------------------------------------------------
# 02/01/16 | Mathieu Hautebas | add binutils install
# ---------------------------------------------------------------
if [[ "$(whoami)" != "root" ]]; then
echo "Please run this script as root"
exit 1
fi
if [[ $(uname) != 'Linux' ]]; then
echo "This script is only for Linux"
exit 1
fi
apt-get -y install binutils
apt-get -y install p7zip-full
apt-get -y install git
apt-get -y install build-essential
apt-get -y install make
apt-get -y install cmake
apt-get -y install openssl
apt-get -y install libcrypto++-dev
apt-get -y install bsdiff
apt-get -y install libbz2-dev
apt-get -y install libpng3
apt-get -y install libusb-1.0.0
apt-get -y install libusb-1.0.0-dev
apt-get -y install libssl-dev
apt-get -y install libcurl3
apt-get -y install python-pip
cd ~
git clone https://github.com/xerub/xpwn.git
mkdir ~/build
cd ~/build
cmake ~/xpwn
make package
tar jxvf XPwn-0.5.8-Linux.tar.bz2
cd XPwn-0.5.8-Linux/
cp hfsplus ipsw hdutil dmg ticket validate xpwntool /usr/local/bin
echo "XPwn binaries installed !"
echo "Installing libimg3"
git clone https://github.com/matteyeux/libcrippy
cd libcrippy && ./autogen.sh && sudo make install && cd ..
git clone https://github.com/OpenJailbreak/libimg3.git
cd libimg3 && ./autogen.sh && sudo make install && cd ..
echo "Now installing reimagine..."
apt-get -y install libssl-dev:i386 #Should work for reimagine
apt-get -y install clang
# Reimagine
cd ~
git clone https://github.com/danzatt/reimagine.git #
cd reimagine
rm -rf opensn0w-X
git clone https://github.com/danzatt/opensn0w-X.git
cd ~
cd reimagine/opensn0w-X/src && make all
cd ../.. && make
cp ~/reimagine/reimagine /usr/local/bin/
echo "Installed reimagine !"
apt-get -y install gcc
git clone --recursive https://github.com/xerub/img4tool
cd img4tool/lzfse
make && make install
cd ../
make && cp img4 /usr/local/bin/
ldconfig