This commit is contained in:
jc
2025-06-24 04:06:55 +00:00
parent 781817ed37
commit 0bf99656a5
+2 -2
View File
@@ -245,7 +245,7 @@ while [ "$1" != "" ]; do
case $1 in
-p | --port)
shift
[[ $1 =~ ^[0-9]+$ && $1 -le 65535 ]] && { port=$1; } || { [[ $1 =~ ^[0-9]+(,[0-9]+)+$ ]] && { for p in ${1//,/ }; do [[ $p -gt 65535 ]] && help; done; mports=$1; }; } || { help; exit; }
[[ $1 =~ ^[0-9]+$ && $1 -le 65535 ]] && { port=$1; } || { [[ $1 =~ ^[0-9]+(,[0-9]+)+$ ]] && { for p in ${1//,/ }; do [[ $p -gt 65535 ]] && help; done; mports=$1; }; } || help
;;
--nmap)
RUN_NMAP=true
@@ -266,7 +266,7 @@ while [ "$1" != "" ]; do
HTTPX=true
;;
*)
[[ $1 =~ ^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$ ]] && { ip=$1; } || { [[ $1 =~ ^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+/[0-9]+$ ]] && { cidr=$1; }; } || { [[ -f $1 ]] && { ipocalypse=($(<$1)); }; } || { help; exit; }
[[ $1 =~ ^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$ ]] && { ip=$1; } || { [[ $1 =~ ^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+/[0-9]+$ ]] && { cidr=$1; }; } || { [[ -f $1 ]] && { ipocalypse=($(<$1)); }; } || help
;;
esac
shift