forked from georgiaw/Smartphone-Pentest-Framework
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ubuntuinstall
executable file
·40 lines (27 loc) · 1.59 KB
/
ubuntuinstall
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
#!/usr/bin/env bash
#
# This is an Ubuntu installer for the Smartphone Pentest Framework
#######################################################################
# Check to ensure the script is run as root/sudo
if [ "$(id -u)" != "0" ]; then
echo "This script must be run as root or with sudo. Exiting." 1>&2
exit 1
fi
echo -e "Installing required packages...\n"
apt-get install -y openjdk-7-jdk php5 ant mysql-server apache2 python-mysqldb
wget http://dl.google.com/android/android-sdk_r21-linux.tgz
tar -xvzf android-sdk_r21-linux.tgz
export PATH=${PATH}:${PWD}/android-sdk-linux/tools:${PWD}/android-sdk-linux/platform-tools
android update sdk --no-ui --filter platform-tool,android update sdk,android-4 -a,addon-google_apis-google-4 -a,android-14,addon-google_apis-google-14
echo -e "Configuring php...\n"
sed -i "s/post_max_size .*/post_max_size=100M/" /etc/php5/apache2/php.ini
sed -i "s/upload_max_filesize .*/upload_max_filesize =100M/" /etc/php5/apache2/php.ini
echo -e "Starting webserver...\n"
service apache2 start
service mysql start
echo -e "$(tput setaf 1)Creating first time 'framework' database (empty)\n $(tput sgr0)"
mysqladmin -u root create framework -ptoor
echo -e "$(tput setaf 1)\n\nInstall of Smartphone Pentest Framework is complete!\n $(tput sgr0)"
echo -e "$(tput setaf 1)You need to edit your config file to your liking in the following location:${PWD}/frameworkconsole/config\n $(tput sgr0)"
echo -e "$(tput setaf 1)Once config is setup you can run ./framework.py in the frameworkconsole directory,\n"
echo -e "$(tput setaf 1)This concludes the install...enjoy! $(tput sgr0)"