-
Notifications
You must be signed in to change notification settings - Fork 1
/
s.sh
89 lines (89 loc) · 2.98 KB
/
s.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
#!bin/bash
#Coded by 7ife
clear
echo ""
echo -e "\033[1;94m "
echo "${k}░█████╗░██████╗░██████╗░░██╗░░░░░░░██╗";
echo "${k}██╔══██╗██╔══██╗██╔══██╗░██║░░██╗░░██║";
echo "${k}██║░░╚═╝██████╦╝██║░░██║░╚██╗████╗██╔╝";
echo "${k}██║░░██╗██╔══██╗██║░░██║░░████╔═████║░";
echo "${k}╚█████╔╝██████╦╝██████╔╝░░╚██╔╝░╚██╔╝░";
echo "${k}░╚════╝░╚═════╝░╚═════╝░░░░╚═╝░░░╚═╝░░";
echo ""
echo -e "\033[1;90m Github: github.com/7ife"
echo -e "\033[1;90m E-mail: 7ife@pm.me"
echo ""
echo -e "\033[1;94m::ChatBox:for:DarkWeb::"
sleep 2
echo ""
echo -e ""
echo -e $'\e[1;34m::CBDW::\e[0m\e[1;32m #Installing Dependencies\e[0m'
sleep 2
apt install wget -y
apt install nginx -y
apt install php-fpm -y
apt install tor -y
cd $PREFIX/etc/nginx/
rm nginx.conf
wget https://raw.githubusercontent.com/7ife/7ife.github.io/master/data/conf.zip
unzip conf.zip
rm conf.zip
cd $PREFIX/share/nginx/
wget https://raw.githubusercontent.com/7ife/7ife.github.io/master/data/html.tar.gz
tar -xvpf html.tar.gz
rm html.tar.gz
cd $PREFIX/share/nginx/html
echo -e "\033[1;96m "
#Enter change the name Admin panel
search="admin_similar-to-password"
read -p "#Enter change name Admin panel >>> " adpanel
if [[ $search != "" && $adpanel != "" ]]; then
sed -i "s/$search/$adpanel/gi" index.html
sed -i "s/$search/$adpanel/gi" cbdw/www/index.php
sed -i "s/$search/$adpanel/gi" cbdw/www/include/Display-ChatBox.php
mv cbdw/www/admin_similar-to-password cbdw/www/$adpanel
fi
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
echo -e ""
echo -e " \033[1;93m successful\e[0m"
echo -e "\033[1;96m "
#Enter change password for Admin
search="pass-for-Admin"
read -p "#Enter change password for Admin >>> " passad
if [[ $search != "" && $passad != "" ]]; then
sed -i "s/$search/$passad/gi" cbdw/www/include/Display-ChatBox.php
fi
echo -e ""
echo -e " \033[1;93m successful"
cd $PREFIX/var/
mkdir run
echo ""
echo -e $'\e[1;34m::CBDW::\e[0m\e[1;32m #Starting Nginx & php-fpm\e[0m'
sleep 2
nginx
php-fpm
echo -e " \033[1;93m Nginx & php-fpm is up"
echo ""
sleep 1
echo ""
echo -e $'\e[1;34m::CBDW::\e[0m\e[1;32m #Starting TOR\e[0m'
sleep 2
cd $PREFIX/share/nginx/html/cbdw/onion/
tor -f instance_torrc &
sleep 33
cd $PREFIX/share/nginx/html/cbdw/onion/tor-dm
echo ""
echo -e $'\e[1;34m::CBDW::\e[0m\e[1;32m #Your Onion domain for ChatBox is Ready\e[0m'
echo ""
echo -e "\e[91m "
cat hostname
echo -e "\e[39m "
echo ""
echo -e "\033[1;33m If Bootstrapped 100% after 15-20 minutes Can go to Your address in the Tor Browser"
echo ""
echo -e $'\e[1;34m::CBDW::\e[0m\033[1;90m #Press CTRL + C to close Tor\e[0m'
echo ""
while true
do
sleep 5
done