-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMultiInstallerScript.sh
180 lines (166 loc) · 4.76 KB
/
MultiInstallerScript.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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
#!/bin/bash
Red='\033[0;31m'
NC='\033[0m'
Green='\033[0;32m'
Blue='\033[0;34m'
function roottest() {
ROOT_UID=0 # Root has $UID 0.
if [ "$UID" -eq "$ROOT_UID" ] # Will the real "root" please stand up?
then
echo -e "${Green}RootCheck Good${NC}"
else
echo -e "${Red}Run as Root!!${NC}"
exit n
fi
}
roottest
pwdv=$(pwd)
function InternetTest() {
if ping -q -c 1 -W 1 8.8.8.8 >/dev/null; then
echo -e "${Green}Internet Test Success${NC}"
else
echo -e "${Red}Internet Connection Unavailable${NC}"
exit n
fi }
function CMDSTEST() {
if [ $? -eq 0 ]; then
echo -e $1 "${Green}Installed${NC}"
else
echo -e $1 "${Red}Failed${NC}"
fi
}
InternetTest
echo -e "${Blue}
________________
|'-.--._ _________:
| / | __ __\
| | _ | [\_\= [\_\
| |.' '. \.........|
| ( <) ||: :|_
\ '._.' | :.....: |_(o
'-\_ \ .------./
_ \ ||.---.|| _
/ \ \ || || / \
(| []=.--[===[()]===[) |
<\_/ \_______/ _.' /_/
/// (_/_/
|\\ [\\
||:| | I|
|::| | I|
||:| | I|
||:| : \:
|\:| \I| A Shri3kinband1t Script
:/\: ([])
([]) [|
|| |\_
_/_\_ [ -'-.__
<] \> \_____.>
\__/
${NC}"
read -p "Install Nordvpn? (y/n)" installnordvpn_y
read -p "Install Transmission Torrent Client?(y/n)" installtransmission_y
read -p "Install VLC media player? (y/n)" installvlc_y
read -p "Install PUTTY ssh client? (y/n)" installputty_y
read -p "Install Aircrack-ng? (y/n)" installaircrack_y
read -p "Install PenTester's Framework? (y/n)" installptf_y
read -p "Install Atom? (y/n)" installatom_y
read -p "Install Discord? (y/n)" installdiscord_y
read -p "Install Ettercap? (y/n)" installettercap_y
read -p "Install Wordpress? (y/n)" installwordpress_y
apt-get update -qq
#Nordvpn
if [ $installnordvpn_y = "y" ]
then
wget -qnc https://repo.nordvpn.com/deb/nordvpn/debian/pool/main/nordvpn-release_1.0.0_all.deb
dpkg -i nordvpn-release_1.0.0_all.deb > /dev/null 2>&1
apt-get -qq update
apt-get -qq install nordvpn
rm nordvpn-release_1.0.0_all.deb
CMDSTEST NordvpnDownload
nordvpn login
CMDSTEST NordvpnLogin
apt -q autoremove
fi
#Transmission
if [ $installtransmission_y = "y" ]
then
apt-get install transmission -y
CMDSTEST Transmission
fi
#VLC
if [ $installvlc_y = "y" ]
then
apt-get install VLC -y
CMDSTEST VLC
fi
#PUTTY
if [ $installputty_y = "y" ]
then
apt-get install putty -y
CMDSTEST Putty
fi
#Aircrack-ng
if [ $installaircrack_y = "y" ]
then
apt-get install aircrack-ng -y
CMDSTEST Aircrack
fi
#PTF
if [ $installptf_y = "y" ]
then
apt-get install git -y
git clone https://github.com/trustedsec/ptf
cd ptf
pip3 install -r requirements.txt
CMDSTEST ptf
echo -e "${Red}You have to run PTF yourself to install everything (and good luck!)${NC}"
fi
#Discord
if [ $installdiscord_y = "y" ]
then
snap install discord --classic
CMDSTEST Discord
fi
#Ettercap
if [ $installettercap_y = "y" ]
then
apt install ettercap
apt install ettercap-graphical
CMDSTEST Ettercap GUI
fi
#wordpress
if [ $installwordpress_y = "y" ]
then
apt update
apt install apache2 \
ghostscript \
libapache2-mod-php \
mysql-server \
php \
php-bcmath \
php-curl \
php-imagick \
php-intl \
php-json \
php-mbstring \
php-mysql \
php-xml \
php-zip
mkdir -p /srv/www
chown www-data: /srv/www
curl https://wordpress.org/latest.tar.gz | sudo -u www-data tar zx -C /srv/www
touch /etc/apache2/sites-available/wordpress.conf
echo "<VirtualHost *:80>\n DocumentRoot /srv/www/wordpress\n <Directory /srv/www/wordpress>\n Options FollowSymLinks\n AllowOverride Limit Options FileInfo\n DirectoryIndex index.php\n Require all granted\n </Directory>\n <Directory /srv/www/wordpress/wp-content>\n Options FollowSymLinks\n Require all granted\n </Directory>\n</VirtualHost>" >> /etc/apache2/sites-available/wordpress.conf
a2ensite wordpress
sudo a2enmod rewrite
echo "<VirtualHost *:80>\n ServerName hostname.example.com\n ... # the rest of the VHost configuration\n</VirtualHost>" >> /etc/hosts
sudo service apache2 reload
sudo service apache2 restart
echo "follow this guide starting at step 5 to continue your wordpress installation https://ubuntu.com/tutorials/install-and-configure-wordpress#5-configure-database"
fi
#Atom
if [ $installatom_y = "y" ]
then
snap install atom --classic
fi
echo "Install done!"