-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
28 lines (23 loc) · 847 Bytes
/
install.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
#!/bin/bash
pkgs=(php tor pv curl)
for p in "${pkgs[@]}"; do
if ! hash ${p} > /dev/null 2>&1; then
printf "\n\e[32m${p} not found installing....\n\e[0m"
apt install ${p} -y > /dev/null 2>&1
fi
done
echo instaling DarkwebHoster...
curl -sLO https://github.com/yottajunaid/DarkwebHoster/raw/main/files/torrc
curl -sLO https://github.com/yottajunaid/DarkwebHoster/raw/main/files/DWH
mv torrc $PREFIX/etc/tor/torrc
mv DWH $PATH/DarkwebHoster
chmod +x $PATH/DarkwebHoster
if [[ -d $PREFIX/var/lib/tor/hidden_service/ ]];then
printf "\n
now you can launch DWH by typing \e[31mDarkwebHoster\e[0m from any directory
"
else
echo tor hidden hidden_service directory not found creating...
mkdir -p $PREFIX/var/lib/tor/hidden_service/
printf "\nnow you can launch DWH by typing \e[3131mDarkwebHoster\e[0m from any directory"
fi