-
Notifications
You must be signed in to change notification settings - Fork 6
/
installer.sh
45 lines (39 loc) · 1.44 KB
/
installer.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
#!/bin/bash
declare -a packages=(
"python"
"python-pip"
)
echo -e "\n\033[1;37m[\033[1;31mWebExploit\033[1;37m] - UPDATING PACKAGES ...\n"
sleep 3
if [ `id -u` == 0 ]; then
echo -e "\033[1;37m[\033[1;31mWebExploit\033[1;37m] - INSTALLING PACKAGES ...\n"
sleep 3
sudo apt update -y > /dev/null 2>&1
sudo apt upgrade -y > /dev/null 2>&1
echo -e "\033[1;37m[\033[1;32mWebExploit\033[1;37m] - INSTALLED SUCCESSFUL. \n"
sleep 3
for packages in "${packages[@]}"; do
sudo apt install $packages -y > /dev/null 2>&1
done
else
echo -e "\033[1;37m[\033[1;31mWebExploit\033[1;37m] - INSTALLING PACKAGES ...\n"
sleep 3
apt update -y > /dev/null 2>&1
apt upgrade -y > /dev/null 2>&1
echo -e "\033[1;37m[\033[1;32mWebExploit\033[1;37m] - INSTALLED SUCCESSFUL. \n"
sleep 3
for packages in "${packages[@]}"; do
apt install $packages -y > /dev/null 2>&1
done
fi
echo -e "\033[1;37m[\033[1;32mWebExploit\033[1;37m] - INSTALLED SUCCESSFUL. \n"
sleep 3
# finally
echo -e "\033[1;37m[\033[1;31mWebExploit\033[1;37m] - \033[1;32mINSTALLING WEB-EXPLOIT REQUIREMENTS ...\033[1;37m\n"
sleep 3
chmod 777 setup.py
python setup.py install > /dev/null 2>&1
echo -e "\033[1;37m[\033[1;32mWebExploit\033[1;37m] - INSTALLED SUCCESSFUL. \n"
sleep 3
echo -e "\033[1;37m[\033[1;32mWebExploit\033[1;37m] - NOW TYPE \033[1;32mpython WebExploit.py\033[1;37m FOR RUN :).\n"
sleep 3