forked from honeynet/apkinspector
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path3.sh~.rtf
executable file
·110 lines (110 loc) · 3.44 KB
/
3.sh~.rtf
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
{\rtf1\ansi\deff0{\fonttbl{\f0\fnil\fcharset134 \'cb\'ce\'cc\'e5;}}
{\*\generator Msftedit 5.41.21.2510;}\viewkind4\uc1\pard\lang2052\f0\fs22 #!/bin/sh\par
\par
#Check Ubuntu version\par
read line < /etc/issue\par
str1="Ubuntu 12.04 LTS n l"\par
str2="Ubuntu 11.10 LTS n l"\par
if [ "$str1" = "$line" ]; then\par
echo "Your Ubuntu Version is 12.04 LTS n l, supported by APKInspector."\par
\pard elif [ "$str2" = "$line" ]; then\par
echo "Your Ubuntu Version is 11.10 LTS n l, supported by APKInspector."\par
\pard\par
else\par
echo "Your Ubuntu Version is $line, please install 11.10/12.04 in order to run APKinspector"\par
exit 0\par
fi\par
\par
#######Install QTSDK\par
echo "please input your password"\par
read yourpassword\par
echo "yourpassword"|sudo -S apt-get install build-essential \par
#echo "y"|sudo -S apt-get install subversion\par
chmod u+x Qt_SDK_Lin32_offline_v1_2_en.run\par
sudo ./Qt_SDK_Lin32_offline_v1_2_en.run\par
sudo chmod 777 /etc/profile\par
cat >> /etc/profile << EFF\par
############################\par
QTDIR=/opt/QtSDK/Desktop/Qt/473/gcc\par
PATH=$QTDIR/bin:$PATH\par
LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH\par
export QTDIR PATH LD_LIBRARY_PATH\par
#############################\par
EFF\par
\par
#echo "$yourpassword"|sudo -S updatedb\par
echo "y"|sudo -S apt-get install qt4-qmake\par
echo "y"|sudo -S apt-get install libqt4-dev\par
\par
qmake -v\par
if [\'c2\'a0"$?"\'c2\'a0!= 0 ]; then\par
echo "QT is not successfuly installed."\par
exit 0\par
else \par
echo "QT is successfuly installed."\par
fi\par
\par
\par
##Install Python-dev\par
echo "y"|sudo -S apt-get install python-dev\par
echo "sssssssssssssssssssssssssssssssssssssss"\par
######Install SIP ###latest version: 4.13.3\par
tar zxvf sip-4.13.3.tar.gz\par
cd sip-4.13.3\par
echo "y"|sudo -S python configure.py\par
echo "y"|sudo -S make\par
echo "y"|sudo -S make install\par
echo "####################################"\par
cd ..\par
\par
######Install pyqt4 ###latest version:4.9.4\par
tar zxvf PyQt-x11-gpl-4.9.4.tar.gz\par
cd PyQt-x11-gpl-4.9.4\par
echo "yes"|sudo -S python configure.py -g\par
echo "$yourpassword"|sudo -S make\par
echo "111111111111111111111111111111111111"\par
echo "$yourpassword"|sudo -S make install\par
cd ..\par
\par
#######Install pydot ###latest version:1.0.28\par
tar zxvf pydot-1.0.28.tar.gz\par
cd pydot-1.0.28\par
echo "y"|sudo python setup.py install\par
cd ..\par
\par
\par
#######Install Graphviz\par
tar zxvf graphviz-2.28.0.tar.gz\par
cd graphviz-2.28.0\par
echo "$yourpassword"|sudo -S ./configure --with-ortho=yes\par
echo "$yourpassword"|sudo -S make\par
echo "$yourpassword"|sudo -S make install\par
cd ..\par
\par
\par
#####Install apktool\par
\par
tar jxvf apktool1.4.3.tar.bz2 \par
tar jxvf apktool-install-linux-r04-brut1.tar.bz2 \par
echo "$yourpassword"|sudo -S cp apktool* /usr/local/bin\par
\par
######Lib-dependency\par
echo "$yourpassword"|sudo -S apt-get install ipython\par
echo "y"|sudo -S apt-get install python-scipy\par
echo "y"|sudo -S apt-get install gtk2-engines-pixbuf\par
\par
\par
######Install JDK\par
echo "y"|sudo -S apt-get install openjdk-7-jdk\par
\par
######Install pyparsing\par
echo "$yourpassword"|sudo -S apt-get install python-setuptools\par
echo "y"|sudo -S easy_install pyparsing\par
\par
######Run Apkinspector\par
unzip apkinspector.Beta.zip\par
cd apkinspector\par
python startQT.py\par
\par
}