forked from 0x90/kali-scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
internet.sh
executable file
·105 lines (84 loc) · 3.1 KB
/
internet.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
96
97
98
99
100
101
102
103
104
105
#!/usr/bin/env bash
# Browsers, TOR and IM
. helper.sh
install_chrome(){
print_status "Adding Google Chrome to APT..."
# wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
# echo "deb http://dl.google.com/linux/chrome/deb/ stable main" > /etc/apt/sources.list.d/google-chrome.list
# apt-get update -y && apt-get install google-chrome-stable -y
apt_add_key "https://dl-ssl.google.com/linux/linux_signing_key.pub"
# apt_add_sources "deb http://dl.google.com/linux/chrome/deb/ stable main" "google-chrome"
apt_add_source "google-chrome"
apt-get install google-chrome-stable -y
print_status "Patching Google Chrome to run as root.."
cp /usr/bin/google-chrome /usr/bin/google-chrome.old && sed -i 's/^\(exec.*\)$/\1 --user-data-dir/' /usr/bin/google-chrome
}
install_chromium(){
apt-get install -y chromium
echo "# simply override settings above" >> /etc/chromium/default
echo 'CHROMIUM_FLAGS="--password-store=detect --user-data-dir"' >> /etc/chromium/default
}
install_firefox(){
apt-get remove iceweasel
apt_add_source "ubuntuzilla"
# echo "deb http://downloads.sourceforge.net/project/ubuntuzilla/mozilla/apt all main" > /etc/apt/sources.list.d/ubuntuzilla.list
apt-key adv --recv-keys --keyserver keyserver.ubuntu.com C1289A29
apt-get update -y && apt-get install firefox-mozilla-build -y
}
install_browsers(){
if ask "Do you want to install Chromium (and allowing run as root) ?" Y; then
install_chromium
fi
if ask "Do you want to install Google Chrome (and allowing run as root) ?" Y; then
install_chrome
fi
if ask "Do you want to install Firefox?" Y; then
install_firefox
fi
if ask "Do you want to install the Flash player?" Y; then
apt-get -y install flashplugin-nonfree
fi
if ask "Do you want to install OWASP Mantra browser?" Y; then
apt-get install -y owasp-mantra-ff
fi
}
install_skype(){
dpkg --add-architecture i386 && apt-get update -y
cd /tmp
wget -O skype-install.deb http://www.skype.com/go/getskype-linux-deb
dpkg -i skype-install.deb
apt-get -f install
apt-get install -y gdebi
# apt-get -f install
apt-get autoclean
}
install_tor(){
apt-get install tor vidalia privoxy -y
echo forward-socks4a / 127.0.0.1:9050 . >> /etc/privoxy/config
mkdir -p /var/run/tor
chown debian-tor:debian-tor /var/run/tor
chmod 02750 /var/run/tor
# /etc/init.d/tor start
# /etc/init.d/privoxy start
#USE SOCKS PROXY 127.0.0.1:9059
}
install_internet(){
if ask "Do you want to install some browsers (Chrome, Firefox, OWASP Mantra)?" N; then
install_browsers
fi
if ask "Do you want to install TOR?" N; then
install_tor
fi
if ask "Do you want to install Skype?" N; then
install_skype
fi
if ask "Do you want to install pidgin and an OTR chat plugin?" N; then
apt-get -y install pidgin pidgin-otr
fi
if ask "Install Dropbox? " N; then
apt-get install -y nautilus-dropbox
fi
}
if [ "${0##*/}" = "internet.sh" ]; then
install_internet
fi