htr-tech / zphisher

An automated phishing tool with 30+ templates. This Tool is made for educational purpose only ! Author will not be responsible for any misuse of this toolkit !
GNU General Public License v3.0
10.76k stars 3.51k forks source link

server/.cld.log: No such file or directory #772

Open smoke-wolf opened 1 year ago

smoke-wolf commented 1 year ago

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
smoke-wolf commented 1 year ago

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 }

aravkr14 commented 5 months ago

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 [[ ${maskurl//:} =~ ^([h][t][t][p][s]?)$ || ${mask_url::3} == "www" ]] && [[ ${maskurl#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??