-
Notifications
You must be signed in to change notification settings - Fork 174
/
Copy pathphone.sh
executable file
·46 lines (36 loc) · 1.22 KB
/
phone.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
#!/usr/bin/env bash
#
. helper.sh
install_ios_tools(){
apt-get install -y ifuse ipheth-utils iphone-backup-analyzer libimobiledevice-utils libimobiledevice2 python-imobiledevice usbmuxd
}
install_msf_on_iphone(){
apt-get update && apt-get dist-upgrade && apt-get install wget subversion
wget http://ininjas.com/repo/debs/ruby_1.9.2-p180-1-1_iphoneos-arm.deb
wget http://ininjas.com/repo/debs/iconv_1.14-1_iphoneos-arm.deb
wget http://ininjas.com/repo/debs/zlib_1.2.3-1_iphoneos-arm.deb
dpkg -i iconv_1.14-1_iphoneos-arm.deb
dpkg -i zlib_1.2.3-1_iphoneos-arm.deb
dpkg -i ruby_1.9.2-p180-1-1_iphoneos-arm.deb
cd /private/var
svn co https://www.metasploit.com/svn/framework3/trunk/ msf3
ruby msfconsole
}
install_android_tools(){
apt-get install -y abootimg smali android-sdk apktool dex2jar
apt_add_repo ppa:nilarimogard/webupd8
apt-get install -y android-tools-adb android-tools-fastboot
}
install_phone_tools()
{
apt-get install gammu
if ask "Install tools for iOS hacking?" Y; then
install_ios_tools
fi
if ask "Install tools for Andoid hacking?" Y; then
install_android_tools
fi
}
if [ "${0##*/}" = "phone.sh" ]; then
install_phone_tools
fi