tiny fix
This commit is contained in:
+2
-2
@@ -245,7 +245,7 @@ while [ "$1" != "" ]; do
|
|||||||
case $1 in
|
case $1 in
|
||||||
-p | --port)
|
-p | --port)
|
||||||
shift
|
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)
|
--nmap)
|
||||||
RUN_NMAP=true
|
RUN_NMAP=true
|
||||||
@@ -266,7 +266,7 @@ while [ "$1" != "" ]; do
|
|||||||
HTTPX=true
|
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
|
esac
|
||||||
shift
|
shift
|
||||||
|
|||||||
Reference in New Issue
Block a user