-
Notifications
You must be signed in to change notification settings - Fork 2
/
hostonion.sh
60 lines (54 loc) · 2.2 KB
/
hostonion.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
apt install figlet
clear
echo -e "\033[1;93m "
figlet -f slant HostOnion
sleep 1
echo ""
echo -e " \033[1;91m Author \033[1;90m: \033[1;95mAllowedical"
echo ""
echo -e ""
sleep 1
echo -e $'\e[1;33m[\e[0m\e[1;77m HostOnion \e[0m\e[1;33m]\e[0m\e[1;32m # Installing Dependencies ! \e[0m'
apt install tor -y
apt install wget -y
apt install php -y
apt install nano
echo -e $'\e[1;33m[\e[0m\e[1;77m HostOnion \e[0m\e[1;33m]\e[0m\e[1;32m ## Generating Webpage \e[0m'
echo "" echo "" php="$(ps -efw | grep php | grep -v grep | awk '{print $2}')" ngrok="$(ps -efw | grep ngrok | grep -v grep | awk '{print $2}')"
kill -9 $php > /dev/null 2>&1
kill -9 $tor > /dev/null 2>&1
echo ""
echo -e $'\e[1;33m[\e[0m\e[1;77m HostOnion \e[0m\e[1;33m]\e[0m\e[1;32m ## Starting Php Server \e[0m'
php -S 127.0.0.1:8080 > /dev/null 2>&1 &
sleep 3
echo -e "\033[1;95mPhp server is up"
echo -e "\033[1;96mYou can check your server by accessing localhost:8080"
#-----------------------------------------------
sleep 1
echo -e $'\e[1;33m[\e[0m\e[1;77m HostOnion \e[0m\e[1;33m]\e[0m\e[1;32m # Configuring Files ! \e[0m'
cd /data/data/com.termux/files/usr/var/lib/
mkdir tor
cd tor
mkdir hidden_service
cd /data/data/com.termux/files/usr/var/lib/tor/hidden_service
rm hostname
cd /data/data/com.termux/files/usr/etc/tor
rm torrc
echo -e $'\e[1;33m[\e[0m\e[1;77m HostOnion \e[0m\e[1;33m]\e[0m\e[1;32m ## Setting up TOR \e[0m'
wget https://raw.githubusercontent.com/Deauthxploit/Nothing_much/main/torrc
tor &
sleep 60
cd /data/data/com.termux/files/usr/var/lib/tor/hidden_service
echo ""
echo -e $'\e[1;33m[\e[0m\e[1;77m HostOnion \e[0m\e[1;33m]\e[0m\e[1;32m # Your Onion Site is Ready !! \e[0m'
echo ""
echo -e "\e[91m "
cat hostname
echo -e "\e[39m "
echo ""
echo -e $'\e[1;33m[\e[0m\e[1;77m HostOnion \e[0m\e[1;33m]\e[0m\e[1;32m ## Press ctrl + c to Exit \e[0m'
echo ""
while true
do
sleep 5
done