forked from georgiaw/Smartphone-Pentest-Framework
-
Notifications
You must be signed in to change notification settings - Fork 0
/
btinstall
executable file
·36 lines (28 loc) · 1.68 KB
/
btinstall
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
#!/bin/sh
#
# This is an attempt to make an installer for Smartphone Pentest Framework
# This is ugly as shit but it works.. could be done in perl a lot better,
# will convert it one day. maybe. =)
# -loon aug 2012
#######################################################################
## Install needed packages
echo -e "$(tput setaf 1)\nInstallin serialport, dbdpg, and expect for perl\n"; echo "$(tput sgr0)"
echo -e "$(tput setaf 1)#########################################\n"; echo "$(tput sgr0)"
echo $cwd;
apt-get -y install libexpect-perl libdbd-pg-perl libdevice-serialport-perl;
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
apt-get install ant1.8
android update sdk --no-ui --filter platform-tool
android update sdk --no-ui --filter android-4
android update sdk --no-ui --filter addon-google_apis-google-4
android update sdk --no-ui --filter android-14
android update sdk --no-ui --filter addon-google_apis-google-14
echo -e "$(tput setaf 1)Creating first time 'framework' database (empty)\n"; echo "$(tput sgr0)"
service mysql start;
mysqladmin -u root create framework -ptoor;
echo -e "$(tput setaf 1)\n\nInstall of Smartphone Pentest Framework is complete!\n"; echo "$(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"; echo "$(tput sgr0)"
echo -e "$(tput setaf 1)Once config is setup you can either run ./framework.pl in the frameworkconsole directory,\n"; echo "$(tput sgr0)"
echo -e "$(tput setaf 1)This concludes the install.. enjoy!"; echo "$(tput sgr0)"